/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
/*
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
*/
define(["ojs/ojcore","jquery","promise","ojs/ojcomponentcore","ojs/ojdatasource-common","ojs/ojdatacollection-utils","ojs/ojinputnumber","ojs/ojmenu","ojs/ojdialog"],function(a,g){function b(a){this.grid=a}function c(a){this.options=a}function d(a){this.u_=-1;this.$q=a;a=navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():null;this.fja=this.Qsa(a);this.platform=this.Rsa(a)}function e(){this.pO={column:{},row:{}}}function f(){this.Eu=20;this.Fu=30;this.q=new d(this);this.TF=!1;this.gG=
new e;this.dKa=new b(this);this.Jt=this.Kt=this.Tt=this.Ut=null;this.hG={};this.YF=this.ZF=void 0;this.zi=this.um=this.vm=this.Qn=this.pj=this.qj=this.qk=!1;this.cx=!0;this.callbacks={};this.nEa();this.St=[];this.wr=[]}a.tl=function(b,c){this.oLa=b;this.WLa=c;this.Ga={};this.Ga.datagrid="oj-datagrid";this.Ga.cell="oj-datagrid-cell";this.Ga.cellcontent="oj-datagrid-cell-content";this.Ga.celltext="oj-datagrid-cell-text";this.Ga.banded="oj-datagrid-banded";this.Ga.row="oj-datagrid-row";this.Ga.databody=
"oj-datagrid-databody";this.Ga.topcorner="oj-datagrid-top-corner";this.Ga.bottomcorner="oj-datagrid-bottom-corner";this.Ga.rowheaderspacer="oj-datagrid-row-header-spacer";this.Ga.colheaderspacer="oj-datagrid-column-header-spacer";this.Ga.status="oj-datagrid-status";this.Ga.emptytext="oj-datagrid-empty-text";this.Ga.header="oj-datagrid-header";this.Ga.endheader="oj-datagrid-end-header";this.Ga.groupingcontainer="oj-datagrid-header-grouping";this.Ga.headercell="oj-datagrid-header-cell";this.Ga.headercelltext=
"oj-datagrid-header-cell-text";this.Ga.headercellcontent="oj-datagrid-header-cell-content";this.Ga.rowheader="oj-datagrid-row-header";this.Ga.colheader="oj-datagrid-column-header";this.Ga.colheadercell="oj-datagrid-column-header-cell";this.Ga.rowheadercell="oj-datagrid-row-header-cell";this.Ga.endheadercell="oj-datagrid-end-header-cell";this.Ga.endheadercelltext="oj-datagrid-end-header-cell-text";this.Ga.endheadercellcontent="oj-datagrid-end-header-cell-content";this.Ga.rowendheader="oj-datagrid-row-end-header";
this.Ga.colendheader="oj-datagrid-column-end-header";this.Ga.colendheadercell="oj-datagrid-column-end-header-cell";this.Ga.rowendheadercell="oj-datagrid-row-end-header-cell";this.Ga["scroller-mobile"]="oj-datagrid-scroller-touch";this.Ga.scroller="oj-datagrid-scroller";this.Ga.scrollers="oj-datagrid-scrollers";this.Ga.focus="oj-focus";this.Ga.hover="oj-hover";this.Ga.active="oj-active";this.Ga.selected="oj-selected";this.Ga.disabled="oj-disabled";this.Ga.enabled="oj-enabled";this.Ga["default"]="oj-default";
this.Ga.sortcontainer="oj-datagrid-sort-icon-container";this.Ga.sortascending="oj-datagrid-sort-ascending-icon";this.Ga.sortdescending="oj-datagrid-sort-descending-icon";this.Ga.icon="oj-component-icon";this.Ga.clickableicon="oj-clickable-icon-nocontext";this.Ga.info="oj-helper-hidden-accessible";this.Ga.rowexpander="oj-rowexpander";this.Ga.cut="oj-datagrid-cut";this.Ga.selectaffordancetop="oj-datagrid-touch-selection-affordance-top";this.Ga.selectaffordancebottom="oj-datagrid-touch-selection-affordance-bottom";
this.Ga.toucharea="oj-datagrid-touch-area";this.Ga.readOnly="oj-read-only";this.Ga.editable="oj-datagrid-editable";this.Ga.cellEdit="oj-datagrid-cell-edit";this.Ga.draggable="oj-draggable";this.Ga.drag="oj-drag";this.Ga.drop="oj-drop";this.Ga.activedrop="oj-active-drop";this.Ga.validdrop="oj-valid-drop";this.Ga.invaliddrop="oj-invalid-drop";this.Ga.formcontrol="oj-form-control-inherit";this.Ga.borderHorizontalNone="oj-datagrid-border-horizontal-none";this.Ga.borderVerticalNone="oj-datagrid-border-vertical-none";
this.Ga.borderHorizontalSmall="oj-datagrid-small-content-border-horizontal";this.Ga.borderVerticalSmall="oj-datagrid-small-content-border-vertical";this.Ga.offsetOutline="oj-datagrid-focus-offset";this.dk={};this.dk.sortCol="oj-datagrid-sortCol";this.dk.sortColAsc="oj-datagrid-sortColAsc";this.dk.sortColDsc="oj-datagrid-sortColDsc";this.dk.sortRow="oj-datagrid-sortRow";this.dk.sortRowAsc="oj-datagrid-sortRowAsc";this.dk.sortRowDsc="oj-datagrid-sortRowDsc";this.dk.resize="oj-datagrid-resize";this.dk.resizeWidth=
"oj-datagrid-resizeWidth";this.dk.resizeHeight="oj-datagrid-resizeHeight";this.dk.cut="oj-datagrid-cut";this.dk.paste="oj-datagrid-paste";this.dk.discontiguousSelection="oj-datagrid-discontiguousSelection";this.attributes={};this.attributes.key="data-oj-key";this.attributes.context="data-oj-context";this.attributes.resizable="data-oj-resizable";this.attributes.sortable="data-oj-sortable";this.attributes.sortDir="data-oj-sortdir";this.attributes.expander="data-oj-expander";this.attributes.expanderIndex=
"data-oj-expander-index";this.attributes.container=a.Components.po;this.attributes.extent="data-oj-extent";this.attributes.start="data-oj-start";this.attributes.depth="data-oj-depth";this.attributes.level="data-oj-level";this.attributes.tabMod="data-oj-tabmod"};o_("DataGridResources",a.tl,a);a.tl.prototype.gc=function(){return"rtl"===this.oLa?!0:!1};a.b.g("DataGridResources.prototype.isRTLMode",{gc:a.tl.prototype.gc});a.tl.prototype.yh=function(a,b){return this.WLa(a,b)};a.b.g("DataGridResources.prototype.getTranslatedText",
{yh:a.tl.prototype.yh});a.tl.prototype.o=function(a){return null!=a?this.Ga[a]:null};a.b.g("DataGridResources.prototype.getMappedStyle",{o:a.tl.prototype.o});a.tl.prototype.Vg=function(a){return null!=a?this.dk[a]:null};a.b.g("DataGridResources.prototype.getMappedCommand",{Vg:a.tl.prototype.Vg});a.tl.prototype.Gc=function(a){return null!=a?this.attributes[a]:null};a.b.g("DataGridResources.prototype.getMappedAttribute",{Gc:a.tl.prototype.Gc});f.yb={cH:9,PO:13,Tla:16,Yka:17,Rka:18,RO:27,sP:32,XG:33,
WG:34,KG:35,OG:36,Bg:37,Bl:38,kh:39,sl:40,lP:53,DP:86,FP:88,SO:113,ila:119,hla:121};f.oMa=1;f.pMa=2;f.bma=250;f.n0=500;f.Uka=400;f.I0=50;f.nB=500;f.h0=6E-4;f.Zla=300;f.Bla=200;f.zla=400;f.J0=10;f.Cla=100;f.Ala=500;f.Wka=750;f.x0=300;f.o0=5;f.Nx="hidden";o_("DvtDataGrid.VISIBILITY_STATE_HIDDEN",f.Nx,void 0);f.MB="refresh";o_("DvtDataGrid.VISIBILITY_STATE_REFRESH",f.MB,void 0);f.eH="render";o_("DvtDataGrid.VISIBILITY_STATE_RENDER",f.eH,void 0);f.Ju="visible";o_("DvtDataGrid.VISIBILITY_STATE_VISIBLE",
f.Ju,void 0);f.prototype.wP=function(a){this.pa=new c(a)};o_("DvtDataGrid.prototype.SetOptions",f.prototype.wP,void 0);f.prototype.r1=function(a,b){for(var c in a)c in this.pa.options&&this.pa.options[c]!=a[c]&&(this.pa.options[c]=a[c]);for(c in a)if(!this.DFa(c,b)){this.empty();this.refresh(this.ba);break}};o_("DvtDataGrid.prototype.UpdateOptions",f.prototype.r1,void 0);f.prototype.DFa=function(a,b){var c;switch(a){case "bandingInterval":this.kCa();this.cMa();this.BG();break;case "currentCell":c=
this.pa.kga();this.EX(c,!0);break;case "editMode":this.NA=this.pa.pga();break;case "gridlines":this.HFa();break;case "header":this.JFa(b);break;case "scrollPosition":this.y_();break;case "selection":c=this.pa.getSelection();this.ip(c);break;default:return!1}return!0};f.prototype.ip=function(a){null!=a&&(this.yc()?this.yP(a):a.length=0)};f.prototype.JFa=function(a){var b,c,d,e,f,g;if(null!=a&&null!=a.subkey&&(a=a.subkey,b=a.split("."),a=b[0],b=b[1],"column"==a&&null!=this.tb&&null!=this.tb.firstChild?
c=this.tb.firstChild.childNodes:"row"==a&&null!=this.qa&&null!=this.qa.firstChild?c=this.qa.firstChild.childNodes:"columnEnd"==a&&null!=this.Pb&&null!=this.Pb.firstChild?c=this.Pb.firstChild.childNodes:"rowEnd"==a&&null!=this.La&&null!=this.La.firstChild&&(c=this.La.firstChild.childNodes),null!=c))for(f=0;f<c.length;f++)d=c[f],e=d[this.ca.Gc("context")],e.index=this.wp(d),"resizable"==b?this.Q$(a,e)?this.ii(d,b,"true"):this.ii(d,b,"false"):"sortable"==b&&(g=this.q.Aa(d.lastChild,this.o("sortcontainer")),
this.RD(a,e)?(g||(e=this.G4(e),d.appendChild(e)),this.ii(d,b,"true")):(g&&this.Kd(d.lastChild),this.ii(d,b,"false")))};f.prototype.HFa=function(){var a,b,c,d,e,f,g,q;e=this.pa.PY();f=this.pa.aZ();g=this.ga.firstChild.childNodes;d=g.length;q=this.ca.gc()?"right":"left";for(a=0;a<d;a+=1)for(c=g[a].childNodes,b=0;b<c.length;b+=1)"hidden"===f||this.Mv(b+this.Lb)&&this.Mw()+this.ta(c[b],q)+this.bY(c[b])>=this.getWidth()?this.q.nb(c[b],this.o("borderVerticalNone")):this.q.pb(c[b],this.o("borderVerticalNone")),
"hidden"===e||this.Nv(a+this.Ea)&&this.Kga(g[a],null)>=this.getHeight()?this.q.nb(c[b],this.o("borderHorizontalNone")):this.q.pb(c[b],this.o("borderHorizontalNone"))};f.prototype.HX=function(a){var b;null!=this.N&&"header"!=this.N.type&&(b=this.dg(),null!=b&&(this.Nv(this.N.indexes.row)&&("none"==a?this.q.nb(b,this.o("borderHorizontalNone")):this.q.pb(b,this.o("borderHorizontalNone"))),this.Mv(this.N.indexes.column)&&("none"==a?this.q.nb(b,this.o("borderVerticalNone")):this.q.pb(b,this.o("borderVerticalNone")))))};
f.prototype.xP=function(a){this.ca=a};o_("DvtDataGrid.prototype.SetResources",f.prototype.xP,void 0);f.prototype.iIa=function(){return this.ca};o_("DvtDataGrid.prototype.getResources",f.prototype.iIa,void 0);f.prototype.Ap=function(){return this.Ea};o_("DvtDataGrid.prototype.getStartRow",f.prototype.Ap,void 0);f.prototype.uIa=function(){return this.Zb};o_("DvtDataGrid.prototype.getStartRowHeader",f.prototype.uIa,void 0);f.prototype.zp=function(){return this.Lb};o_("DvtDataGrid.prototype.getStartColumn",
f.prototype.zp,void 0);f.prototype.sIa=function(){return this.sd};o_("DvtDataGrid.prototype.getStartColumnHeader",f.prototype.sIa,void 0);f.prototype.tIa=function(){return this.Bc};o_("DvtDataGrid.prototype.getStartRowEndHeader",f.prototype.tIa,void 0);f.prototype.rIa=function(){return this.Bd};o_("DvtDataGrid.prototype.getStartColumnEndHeader",f.prototype.rIa,void 0);f.prototype.o=function(a){return this.ca.o(a)};f.prototype.uP=function(a){this.BE();this.wr=[];null!=a&&(this.pia=this.tha.bind(this),
this.mia=this.qha.bind(this),this.lia=this.kha.bind(this),a.on("change",this.pia,this),a.on("expand",this.mia,this),a.on("collapse",this.lia,this));this.Ta=a};o_("DvtDataGrid.prototype.SetDataSource",f.prototype.uP,void 0);f.prototype.lga=function(){return this.Ta};o_("DvtDataGrid.prototype.getDataSource",f.prototype.lga,void 0);f.prototype.Xn=function(a){this.Kia=a};o_("DvtDataGrid.prototype.setVisibility",f.prototype.Xn,void 0);f.prototype.yA=function(){null==this.Kia&&(null!=this.ba.offsetParent?
this.Xn(f.Ju):this.Xn(f.Nx));return this.Kia};o_("DvtDataGrid.prototype.getVisibility",f.prototype.yA,void 0);f.prototype.g1=function(a){this.Gia=a};o_("DvtDataGrid.prototype.SetOptionCallback",f.prototype.g1,void 0);f.prototype.h1=function(a){this.Fia=a};o_("DvtDataGrid.prototype.SetRemoveCallback",f.prototype.h1,void 0);f.prototype.Kd=function(a){null!=this.Fia?this.Fia.call(null,a):a.parentNode.removeChild(a)};o_("DvtDataGrid.prototype._remove",f.prototype.Kd,void 0);f.prototype.d1=function(a){this.bKa=
a};o_("DvtDataGrid.prototype.SetCreateReadyPromiseCallback",f.prototype.d1,void 0);f.prototype.i1=function(a){this.fKa=a};o_("DvtDataGrid.prototype.SetResolveReadyPromiseCallback",f.prototype.i1,void 0);f.prototype.dp=function(){this.St&&(0==this.St.length&&this.bKa(),this.St.push(1))};f.prototype.rh=function(){this.St&&0<this.St.length&&(this.St.pop(),0==this.St.length&&this.fKa())};f.prototype.h$=function(a,b){var c=this,d;d=this.Ta.indexes(a);"function"===typeof d.then?(c.dp(),d.then(function(d){b.call(c,
d,a);c.rh()},function(){b.call(c,{row:-1,column:-1},a);c.rh()})):b.call(c,d,a)};f.prototype.laa=function(a,b){var c=this,d;d=this.Ta.keys(a);"function"===typeof d.then?(c.dp(),d.then(function(d){b.call(c,d,a);c.rh()},function(){b.call(c,{row:null,column:null},a);c.rh()})):b.call(c,d,a)};f.prototype.c1=function(a){this.wN=a};o_("DvtDataGrid.prototype.SetCreateContextCallback",f.prototype.c1,void 0);f.prototype.f1=function(a,b){this.jia=a;this.kia=b};o_("DvtDataGrid.prototype.SetFocusableCallback",
f.prototype.f1,void 0);f.prototype.Mf=function(){return"scroll"!=this.pa.Oga()};f.prototype.destroy=function(){delete this.rd;this.BE();this.Zba();delete this.hG;this.hG={}};o_("DvtDataGrid.prototype.destroy",f.prototype.destroy,void 0);f.prototype.BE=function(){null!=this.Ta&&(this.Ta.off("change",this.pia),this.Ta.off("expand",this.mia),this.Ta.off("collapse",this.lia))};f.prototype.Zba=function(){document.removeEventListener("mousemove",this.zN,!1);document.removeEventListener("mouseup",this.AN,
!1);null!=this.ba&&(this.VF&&this.ba.removeEventListener("keydown",this.VF,!1),this.XF&&this.ba.removeEventListener("focus",this.XF,!1),this.WF&&this.ba.removeEventListener("blur",this.WF,!1))};f.prototype.hk=function(){return this.ba};f.prototype.getWidth=function(){null==this.jG&&(this.jG=this.hk().clientWidth);return this.jG};f.prototype.getHeight=function(){null==this.Qt&&(this.Qt=this.hk().clientHeight);return this.Qt};f.prototype.Pga=function(){return this.Wb(this.ga.firstChild)};f.prototype.WM=
function(){var a=this.getWidth();return Math.round(1.5*a)};f.prototype.xA=function(){var a=this.getHeight();return Math.round(1.5*a)};f.prototype.Cv=function(){var a=this.Kb,b=this.xb(this.ga),c=this.q.yp();return this.On?a+b-c:a+b};f.prototype.xD=function(){var a=this.rc,b=this.Wb(this.ga),c=this.q.yp();return this.Pn?a+b-c:a+b};f.prototype.gm=function(a){return"row"==a?(null==this.QN&&(this.QN=Math.max(1,Math.round(this.xA()/this.KY()))),this.QN):"column"==a?(null==this.uN&&(this.uN=Math.max(1,
Math.round(this.WM()/this.mga()))),this.uN):0};f.prototype.MY=function(){var a;a=this.pa.MY();null==a&&(a=this.ca,a=a.yh("msgNoData"));return a};f.prototype.yC=function(){var a,b,c;a=this.MY();b=document.createElement("div");b.id=this.xe("empty");b.className=this.o("emptytext");this.ma(b,0<=this.Zd?this.jA():0,"top");c=this.ca.gc()?"right":"left";this.ma(b,0<=this.Bb?this.Mw():0,c);b.textContent=a;return this.nm=b};f.prototype.Tja=function(){var a,b;a=document.createElement("div");a.style.visibilty=
"hidden";b=this.ca;a.className=b.o("row")+" "+b.o("colheadercell")+" "+b.o("headercell");document.body.appendChild(a);this.MZ=Math.round(a.getBoundingClientRect().width);this.NZ=Math.round(a.getBoundingClientRect().height);document.body.removeChild(a)};f.prototype.KY=function(){null==this.NZ&&this.Tja();return this.NZ};f.prototype.mga=function(){null==this.MZ&&this.Tja();return this.MZ};f.prototype.Lua=function(a){if("row"==a)return this.KY();if("column"==a)return this.mga()};f.prototype.pD=function(a,
b,c,d){var e,f;e=this.gG.pIa(c,b);if(null!=e)return e;if(""!=a.style[d])return e=this.ta(a,d),this.gG.B_(c,b,e),e;f=a.className;e=this.hG[f];null==e&&(e=this.ta(a,d));e!=this.Lua(c)&&this.gG.B_(c,b,e);return this.hG[f]=e};f.prototype.xe=function(a){var b=this.hk().id;null==b&&(b="");return[b,a].join(":")};f.prototype.MJa=function(){return!1===this.rd.row&&!1===this.rd.column};f.prototype.Ln=function(){return this.MJa()&&!1===this.rd.cells};f.prototype.Nv=function(a){return this.Lf("row")?a===this.ob&&
this.qk:a+1===this.Ta.getCount("row")};f.prototype.Mv=function(a){return this.Lf("column")?a===this.qd&&this.Qn:a+1===this.Ta.getCount("column")};f.prototype.empty=function(){this.nm&&this.ba.removeChild(this.nm);this.sr&&this.ba.removeChild(this.sr);this.zh&&this.ba.removeChild(this.zh);this.kl&&this.ba.removeChild(this.kl);this.ll&&this.ba.removeChild(this.ll);this.ba.removeChild(this.ON);this.ba.removeChild(this.tm);this.ba.removeChild(this.GZ);this.ba.removeChild(this.FA);this.ba.removeChild(this.RN);
this.ba.removeChild(this.LZ);this.Kd(this.tb);this.Kd(this.qa);this.Kd(this.Pb);this.Kd(this.La);this.Kd(this.ga)};f.prototype.refresh=function(a){this.Zba();this.Dja();this.render(a)};o_("DvtDataGrid.prototype.refresh",f.prototype.refresh,void 0);f.prototype.Dja=function(){this.zi=!1;this.St=[];this.dp();this.rh();this.tm=this.RN=this.ON=this.LZ=this.GZ=this.FA=this.nm=this.ga=this.La=this.qa=this.Pb=this.tb=this.ll=this.kl=this.zh=this.sr=this.Gp=null;this.YF=this.ZF=void 0;this.um=this.vm=this.Qn=
this.pj=this.qj=this.qk=!1;this.rd=this.uN=this.QN=null;this.HA=this.RA=this.b_=!1;this.gG.clear();this.hG={};this.bx=this.$w=this.jG=this.Qt=null;this.og=this.hc=void 0;this.Tt=this.Ut=this.Jt=this.Kt=this.NZ=this.MZ=null;this.fG=[];this.PN=[];this.Lt=[];this.tN=[];this.Uf=this.N=null;this.Ce=this.RF=!1;this.PZ=this.lj=this.Ai=this.jc=null;this.TF=!1;this.WF=this.XF=this.VF=this.AN=this.zN=null;this.wr=[];this.IZ=this.HZ=this.GN=this.uia=this.via=this.wia=this.xia=this.tia=this.NA=this.Nt=this.Hp=
this.eG=this.Qd=this.je=this.Pd=this.lk=this.Se=this.mk=this.Ah=this.$c=this.zb=this.Bd=this.Bc=this.Zc=this.Ac=this.yi=this.ld=this.nk=this.kf=this.Zd=this.Bb=this.sd=this.Zb=this.mj=this.ed=this.sm=this.gd=this.qd=this.ob=this.Lb=this.Ea=this.TA=this.Wa=this.QA=this.PA=this.Kb=this.rc=this.Pn=this.On=null};f.prototype.wL=function(){return this.Ln()&&!this.zi&&null!=this.ga.parentNode};f.prototype.zD=function(a){!0==a?(this.fB(),this.y_(),this.dr(),this.Ln()&&(this.EX(this.pa.kga(),!1),this.zi=!0,
this.fireEvent("ready",{}),this.lL())):(this.zi=!0,this.fireEvent("ready",{}),this.lL())};f.prototype.lL=function(){var a,b;if(!this.RA){this.RA=!0;if(null!=this.wr){for(a=0;a<this.wr.length;a++)b=this.wr[a],"expand"==b.operation?this.qha(b,!0):"collapse"==b.operation?this.kha(b,!0):this.tha(b,!0);this.wr.length=0}this.RA=!1}};f.prototype.render=function(a){null!=this.ga&&(this.destroy(),this.Dja());this.rd={};this.Lb=this.Ea=0;this.qd=this.ob=-1;this.sd=this.Zb=this.mj=this.ed=this.sm=this.gd=0;
this.Zd=this.Bb=-1;this.Bd=this.Bc=this.yi=this.ld=this.nk=this.kf=0;this.$c=this.zb=-1;this.QA=this.PA=this.Kb=this.rc=this.lk=this.Se=this.mk=this.Ah=0;this.fG=[];this.PN=[];this.Lt=[];this.tN=[];this.zGa(a)};o_("DvtDataGrid.prototype.render",f.prototype.render,void 0);f.prototype.zGa=function(a){var b,c,d,e,f,g,q;this.ba=a;this.ba.setAttribute("role","application");this.cV()?this.q.nb(this.ba,this.o("editable")):this.q.nb(this.ba,this.o("readOnly"));a.tabIndex=0;b=this.CGa();a.appendChild(b);this.tm=
b;c=this.uGa();a.appendChild(c);this.GZ=c;c=this.tGa();a.appendChild(c);this.FA=c;c=this.BGa();a.appendChild(c);this.RN=c;c=this.xGa();a.appendChild(c);this.LZ=c;c=this.AGa();a.appendChild(c);this.ON=c;null!=this.Ta?(this.nm=null,c=this.ca.gc(),f=this.$ea("column",this.o("colheader"),this.o("colendheader")),d=f.root,g=f.Mfa,a.insertBefore(d,b),a.insertBefore(g,b),f=this.$ea("row",this.o("rowheader"),this.o("rowendheader")),e=f.root,q=f.Mfa,a.insertBefore(e,b),a.insertBefore(q,b),f=this.yGa(),a.insertBefore(f,
b),c&&(d.style.direction="rtl",f.style.direction="rtl"),this.om=!1,this.TA=this.Wa=null,this.RF=!1,this.VF=this.PIa.bind(this),this.XF=this.jJa.bind(this),this.WF=this.iJa.bind(this),this.zN=this.jZ.bind(this),this.AN=this.gJa.bind(this),this.q.Od()?(f.addEventListener("touchstart",this.tJa.bind(this),!1),f.addEventListener("touchmove",this.sJa.bind(this),!1),f.addEventListener("touchend",this.rJa.bind(this),!1),f.addEventListener("touchcancel",this.AA.bind(this),!1),d.addEventListener("touchstart",
this.eN.bind(this),!1),d.addEventListener("touchmove",this.dN.bind(this),!1),d.addEventListener("touchend",this.cN.bind(this),!1),d.addEventListener("touchcancel",this.zA.bind(this),!1),e.addEventListener("touchstart",this.eN.bind(this),!1),e.addEventListener("touchmove",this.dN.bind(this),!1),e.addEventListener("touchend",this.cN.bind(this),!1),e.addEventListener("touchcancel",this.zA.bind(this),!1),g.addEventListener("touchstart",this.eN.bind(this),!1),g.addEventListener("touchmove",this.dN.bind(this),
!1),g.addEventListener("touchend",this.cN.bind(this),!1),g.addEventListener("touchcancel",this.zA.bind(this),!1),q.addEventListener("touchstart",this.eN.bind(this),!1),q.addEventListener("touchmove",this.dN.bind(this),!1),q.addEventListener("touchend",this.cN.bind(this),!1),q.addEventListener("touchcancel",this.zA.bind(this),!1),a.addEventListener("focus",this.XF,!0),a.addEventListener("blur",this.WF,!0),a.addEventListener("keydown",this.VF,!1)):(a.addEventListener("keydown",this.VF,!1),a.addEventListener("focus",
this.XF,!0),a.addEventListener("blur",this.WF,!0),f.addEventListener("wheel",this.fZ.bind(this),!1),f.addEventListener("mousedown",this.QIa.bind(this),!1),f.addEventListener("mousemove",this.RIa.bind(this),!1),f.addEventListener("mouseup",this.UIa.bind(this),!1),f.addEventListener("mouseout",this.SIa.bind(this),!1),f.addEventListener("mouseover",this.TIa.bind(this),!1),f.addEventListener("dblclick",this.OIa.bind(this),!1),e.addEventListener("wheel",this.fZ.bind(this),!1),e.addEventListener("mousedown",
this.$M.bind(this),!1),d.addEventListener("mousedown",this.$M.bind(this),!1),e.addEventListener("mouseover",this.bN.bind(this),!1),d.addEventListener("mouseover",this.bN.bind(this),!1),e.addEventListener("mousemove",this.wha.bind(this),!1),d.addEventListener("mousemove",this.lha.bind(this),!1),e.addEventListener("mouseup",this.rha.bind(this),!1),e.addEventListener("mouseout",this.aN.bind(this),!1),d.addEventListener("mouseout",this.aN.bind(this),!1),e.addEventListener("click",this.ZM.bind(this),!1),
d.addEventListener("click",this.ZM.bind(this),!1),q.addEventListener("wheel",this.fZ.bind(this),!1),q.addEventListener("mousedown",this.$M.bind(this),!1),g.addEventListener("mousedown",this.$M.bind(this),!1),q.addEventListener("mouseover",this.bN.bind(this),!1),g.addEventListener("mouseover",this.bN.bind(this),!1),q.addEventListener("mousemove",this.wha.bind(this),!1),g.addEventListener("mousemove",this.lha.bind(this),!1),q.addEventListener("mouseup",this.rha.bind(this),!1),q.addEventListener("mouseout",
this.aN.bind(this),!1),g.addEventListener("mouseout",this.aN.bind(this),!1),q.addEventListener("click",this.ZM.bind(this),!1),g.addEventListener("click",this.ZM.bind(this),!1)),this.wL()&&this.zD(!0)):(a=this.yC(),this.ba.appendChild(a),this.zD(!1))};f.prototype.Cx=function(a,b){a=this.hk().clientWidth;b=this.hk().clientHeight;if(a!=this.jG||b!=this.Qt)this.jG=a,this.Qt=b,this.uN=this.QN=null,this.zi&&(this.fB(),this.Ln()&&(this.eG=!0,this.dr()))};o_("DvtDataGrid.prototype.HandleResize",f.prototype.Cx,
void 0);f.prototype.fB=function(){var a,b,c,d,e,f,g,q,p,n,u,v,w,y,x,z;a=this.getWidth();b=this.getHeight();c=this.tb;x=this.Pb;d=this.qa;z=this.La;e=this.ga;p=e.firstChild;g=this.jA();v=this.IY();q=this.Mw();u=this.YY();b=b-g-v;f=a-q-u;this.q.Od();a=this.q.yp();this.$m()&&(null==this.nm?(v=this.yC(),this.ba.appendChild(v)):v=this.nm,u=this.xb(v),v=this.Wb(v),u>this.xb(p)&&this.ad(p,u),v>this.Wb(p)&&this.ke(p,v));p=this.Wb(e.firstChild);u=this.xb(e.firstChild);(w=this.lN(f))?(y=this.mN(b-a),e.style.overflow=
"auto"):(y=this.mN(b))?(w=this.lN(f-a),e.style.overflow="auto"):e.style.overflow="hidden";this.On=w;this.Pn=y;-1!=this.$c?(v=Math.min(u+(w?a:0),b),b=w?v-a:v):(v=b,b=Math.min(u,w?v-a:v));-1!=this.zb?(n=Math.min(p+(y?a:0),f),f=y?n-a:n):(n=f,f=Math.min(p,y?n-a:n));y=q+f+(y?a:0);w=g+b+(w?a:0);a=this.ca.gc()?"right":"left";this.ma(d,0,a);this.ma(d,g,"top");this.ad(d,b);this.ma(z,y,a);this.ma(z,g,"top");this.ad(z,b);this.ma(c,q,a);this.ke(c,f);this.ma(x,q,a);this.ma(x,w,"top");this.ke(x,f);this.ma(e,g,
"top");this.ma(e,q,a);this.ke(e,n);this.ad(e,v);this.bx=p-f;this.$w=u-b;this.jM();this.g4();this.eG=!1};f.prototype.Ida=function(){var a,b,c,d,e,f,g,q,p;a=this.ga;b=a.firstChild;c=this.$m();d=this.Mf();e=this.q.l8();f=this.q.m8();g=this.Ta.getCount("row");q=this.Ta.getCount("column");c?(p=Math.max(Math.max(this.ld,this.Se),1),c=Math.max(Math.max(this.yi,this.lk),1)):(p=this.ed,c=this.mj);g=-1==g||d?p:g*this.hc;d=-1==q||d?c:q*this.og;this.ad(b,Math.min(e,g));this.ke(b,Math.min(f,d));this.zi&&(this.bx=
this.Wb(b)-this.Wb(a)+(this.Pn?this.q.yp():0),this.$w=this.xb(b)-this.xb(a)+(this.On?this.q.yp():0))};f.prototype.Lpa=function(a,b,c,d,e,f){var g,q;for(g=0;g<b;)q=this.eb(a,g,c,b,d),f?this.q.pb(q,e):this.q.nb(q,e),g+=this.nA(q)};f.prototype.gI=function(a,b,c,d,e,f,g,q){null!=a&&0<=c&&(d?this.q.nb(e,f):this.q.pb(e,f),b(c)&&this.Lpa(c,g,a,q,f,d))};f.prototype.g4=function(){var a,b,c,d,e,f,g,q,p,n;c=this.q.yp();q=this.getWidth();p=this.getHeight();a=this.jA();b=this.Wb(this.tb);d=this.xb(this.Pb);e=
this.Mw();f=this.xb(this.qa);g=this.Wb(this.La);b=e+b+g+(this.Pn?c:0)<q;a=a+f+d+(this.On?c:0)<p;b&&0<=this.zb?this.IZ=n=!0:!0==this.IZ&&(n=!1);if(null!=n)for(c=this.o("borderVerticalSmall"),null!=this.kl&&(n?this.q.nb(this.kl,c):this.q.pb(this.kl,c)),null!=this.zh&&(n?this.q.nb(this.zh,c):this.q.pb(this.zh,c)),f=this.La.firstChild.childNodes,d=0;d<f.length;d++)n?this.q.nb(f[d],c):this.q.pb(f[d],c);else c=this.o("borderVerticalNone"),n=this.Mv.bind(this),this.gI(this.tb,n,this.Zd,b,this.kl,c,this.Zc,
this.sd),this.gI(this.Pb,n,this.$c,b,this.zh,c,this.je,this.Bd);n=null;a&&0<=this.$c?n=this.HZ=!0:!0==this.HZ&&(n=!1);if(null!=n)for(c=this.o("borderHorizontalSmall"),null!=this.ll&&(n?this.q.nb(this.ll,c):this.q.pb(this.ll,c)),null!=this.zh&&(n?this.q.nb(this.zh,c):this.q.pb(this.zh,c)),f=this.Pb.firstChild.childNodes,d=0;d<f.length;d++)n?this.q.nb(f[d],c):this.q.pb(f[d],c);else c=this.o("borderHorizontalNone"),n=this.Nv.bind(this),this.gI(this.qa,n,this.Bb,a,this.ll,c,this.Ac,this.Zb),this.gI(this.La,
n,this.zb,a,this.zh,c,this.Pd,this.Bc)};f.prototype.jM=function(){var a,b,c,d,e,f,g,q,p,n,u,v;a=this.q.yp();u=this.getWidth();v=this.getHeight();b=this.jA();g=this.Wb(this.tb);p=this.IY();c=this.Mw();n=this.YY();q=this.xb(this.qa);f=this.ca.gc()?"right":"left";-1!=this.Bb&&-1!=this.Zd&&(null!=this.sr?e=this.sr:(e=document.createElement("div"),e.id=this.xe("corner"),e.className=this.o("topcorner")),this.ke(e,c),this.ad(e,b),null==this.sr&&(this.ba.appendChild(e),this.sr=e));null!=this.sr&&null==e&&
(this.ba.removeChild(this.sr),this.sr=null);-1!=this.Bb&&(this.On||-1!=this.$c?(null!=this.ll?e=this.ll:(e=document.createElement("div"),e.id=this.xe("rhSbSpacer"),e.className=this.o("rowheaderspacer")),this.ma(e,q+b,"top"),this.ma(e,0,f),this.ke(e,c),-1!=this.$c?this.ad(e,p+(this.On?a:0)):this.ad(e,v-q-b),null==this.ll&&(this.ba.appendChild(e),this.ll=e)):(null!=this.ll&&this.ba.removeChild(this.ll),this.ll=null));-1!=this.Zd&&(this.Pn||-1!=this.zb?(null!=this.kl?e=this.kl:(e=document.createElement("div"),
e.id=this.xe("chSbSpacer"),e.className=this.o("colheaderspacer")),this.ma(e,c+g,f),this.ma(e,0,"top"),-1!=this.zb?this.ke(e,n+(this.Pn?a:0)):this.ke(e,u-g-c),this.ad(e,b),null==this.kl&&(this.ba.appendChild(e),this.kl=e)):(null!=this.kl&&this.ba.removeChild(this.kl),this.kl=null));if(this.On&&this.Pn||this.Pn&&-1!=this.$c||this.On&&-1!=this.zb||-1!=this.zb&&-1!=this.$c)null!=this.zh?d=this.zh:(d=document.createElement("div"),d.id=this.xe("bcorner"),d.className=this.o("bottomcorner")),this.ma(d,q+
b,"top"),this.ma(d,c+g,f),-1!=this.zb?this.ke(d,n+(this.Pn?a:0)):this.ke(d,u-g-c),-1!=this.$c?this.ad(d,p+(this.On?a:0)):this.ad(d,v-q-b),null==this.zh&&(this.ba.appendChild(d),this.zh=d);null!=this.zh&&null==d&&(this.ba.removeChild(this.zh),this.zh=null)};f.prototype.y_=function(){var a,b,c,d;a=this.pa.lIa();if(void 0!=this.ga&&null!=a&&(b=this.pa.SHa(),c=this.pa.jIa(),null!=b||null!=c))if("key"===a){if(null==c||null==b)a=this.ga,d=null!=a?a.firstChild.firstChild:null,a=null!=d?a.firstChild.firstChild.firstChild:
null,null==c&&null!=a?c=a[this.ca.Gc("context")].keys.row:null==b&&null!=a&&(b=a[this.ca.Gc("context")].keys.column);null!=c&&null!=b&&this.h$({row:c,column:b},this.D$)}else null==c?c=0:null==b&&(b=0),this.D$({row:c,column:b})};f.prototype.D$=function(a){var b,c=0;b=-1===a.column?0:a.column;a=-1===a.row?0:a.row;b*=this.og;c=a*this.hc;this.$U(b,c)};f.prototype.lN=function(a){var b;b=this.ga;a=null==a?this.Wb(b):a;return this.Wb(b.firstChild)>a?!0:!1};f.prototype.mN=function(a){var b;b=this.ga;a=null==
a?this.xb(b):a;return this.xb(b.firstChild)>a?!0:!1};f.prototype.CGa=function(){var a=document.createElement("div");a.id=this.xe("status");a.className=this.o("status");a.setAttribute("role","status");return a};f.prototype.tGa=function(){var a=document.createElement("div");a.id=this.xe("info");a.className=this.o("info");a.setAttribute("role","status");return a};f.prototype.uGa=function(){var a=document.createElement("div");a.id=this.xe("summary");a.className=this.o("info");return a};f.prototype.BGa=
function(){var a=document.createElement("div");a.id=this.xe("state");a.className=this.o("info");return a};f.prototype.xGa=function(){var a=document.createElement("div");a.id=this.xe("context");a.className=this.o("info");return a};f.prototype.AGa=function(){var a=document.createElement("div");a.id=this.xe("placeHolder");a.className=this.o("info");return a};f.prototype.k_=function(){var a,b;a=this.ca.yh("accessibleSummaryExact",{rownum:this.ob+1,colnum:this.qd+1});this.Ta.LM&&(b=this.ca.yh("accessibleSummaryExpanded",
{num:this.Ta.LM().length}),a=a+". "+b);this.GZ.textContent=a+". "};f.prototype.b1=function(a){var b,c,d,e,f;if(null!=a&&(null!=a.context&&(this.GA=a.context),null!=a.state&&(this.RN.textContent=a.state),null!=a.ancestors&&this.Vj())){b="";a=a.ancestors;c=this.N.indexes.column;if(null!=c&&0<=c)for(d=0;d<a.length;d++)0<d&&(b=b.concat(", ")),e=a[d],f=this.Nj(e.key),null!=f&&(f=f.childNodes[c-this.Lb],f=f.textContent,f=null!=f?f.replace(/\n|<br\s*\/?>/gi,"").trim():"",b=b.concat(e.label).concat(" ").concat(f));
this.GA=b.concat(", ").concat(this.GA)}};o_("DvtDataGrid.prototype.SetAccessibleContext",f.prototype.b1,void 0);f.prototype.NFa=function(a){a=this.ca.yh(a,{id:""});null!=a&&(this.RN.textContent=a)};f.prototype.FX=function(a,b){var c,d,e,f,g,q,p,n;c=a.row;d=a.column;f=a.level;g=a.rowHeader;q=a.rowEndHeader;p=a.columnHeader;n=a.columnEndHeader;e="";null!=this.GA||isNaN(c)||"row"==b||(c=this.ca.yh("accessibleRowContext",{index:c+1}),null!=c&&(e=c));isNaN(d)||"column"==b||(c=this.ca.yh("accessibleColumnContext",
{index:d+1}),null!=c&&(e=0===e.length?c:e+" "+c));isNaN(g)||"rowHeader"==b||(c=this.ca.yh("accessibleRowHeaderContext",{index:g+1}),null!=c&&(e=0===e.length?c:e+" "+c));isNaN(p)||"columnHeader"==b||(c=this.ca.yh("accessibleColumnHeaderContext",{index:p+1}),null!=c&&(e=0===e.length?c:e+" "+c));isNaN(q)||"rowEndHeader"==b||(c=this.ca.yh("accessibleRowEndHeaderContext",{index:q+1}),null!=c&&(e=0===e.length?c:e+" "+c));isNaN(n)||"columnEndHeader"==b||(c=this.ca.yh("accessibleColumnEndHeaderContext",{index:n+
1}),null!=c&&(e=0===e.length?c:e+" "+c));isNaN(f)||"level"==b||(c=this.ca.yh("accessibleLevelContext",{level:f+1}),null!=c&&(e=0===e.length?c:e+" "+c));null!=this.GA&&(e=e+", "+this.GA,this.GA=null);this.LZ.textContent=e};f.prototype.Lf=function(a){var b;b=this.Ta;return"row"===a||"rowEnd"===a?(void 0===this.ZF&&(a=b.getCountPrecision("row"),b=b.getCount("row"),this.ZF="estimate"===a||0>b?!0:!1),this.ZF):"column"===a||"columnEnd"===a?(void 0===this.YF&&(a=b.getCountPrecision("column"),b=b.getCount("column"),
this.YF="estimate"===a||0>b?!0:!1),this.YF):!1};f.prototype.H$=function(a){return this.Lf(a)||this.Mf()};f.prototype.iK=function(a){a.style.display="none"};f.prototype.yL=function(a){a.style.display=""};f.prototype.$ea=function(a,b,c){var d,e;e=this.o("scroller")+(this.q.Od()?" "+this.o("scroller-mobile"):"");d=document.createElement("div");d.id=this.xe(a+"Header");d.className=b+" "+this.o("header");b=document.createElement("div");b.className=e;d.appendChild(b);b=document.createElement("div");b.id=
this.xe(a+"EndHeader");b.className=c+" "+this.o("endheader");c=document.createElement("div");c.className=e;b.appendChild(c);"column"===a?(this.tb=d,this.Pb=b):"row"===a&&(this.qa=d,this.La=b);this.fetchHeaders(a,0,d,b,null,null);return{root:d,Mfa:b}};f.prototype.fetchHeaders=function(a,b,c,d,e,f){this.rd[a]||(void 0==e&&(e=this.gm(a)),b={axis:a,start:b,count:e,header:c,endHeader:d},this.rd[a]=b,a=null!=f&&null!=f.success?f.success:this.fN,this.hB(),this.dp(),this.Ta.fetchHeaders(b,{success:a,error:this.sha},
{success:this,error:this}))};f.prototype.OJa=function(a){return a==this.rd[a.axis]};f.prototype.NJa=function(a){var b;if(!this.zi)return!0;b=a.axis;a=a.start;return("row"==b?this.Sy(this.Kb,this.QA,b):this.Sy(this.rc,this.PA,b)).start==a};f.prototype.fN=function(a,b,c,d){var e,f,g,q,p;this.OJa(b)&&(e=b.axis,this.GN&&!this.NJa(b)?(this.rd[e]=!1,this.yia=!0):(this.rd[e]=!1,f=b.header,g=b.endHeader,q=b.start,p=this.Ta.getCount(e),"column"===e?(null!=a&&(this.wGa(f,a,q,p),a.getCount()<b.count&&(this.vm=
!0)),0>this.Zd?(this.iK(f),this.vm=!0):this.via=!0,null!=c&&(this.vGa(g,c,q,p),c.getCount()<b.count&&(this.um=!0)),0>this.$c?(this.iK(g),this.um=!0):this.uia=!0):"row"===e&&(null!=a&&(this.dfa(f,a,q,p,d,!1),a.getCount()<b.count&&(this.qj=!0)),0>this.Bb?(this.iK(f),this.qj=!0):this.xia=!0,null!=c&&(this.cfa(g,c,q,p,d,!1),c.getCount()<b.count&&(this.pj=!0)),0>this.zb?(this.iK(g),this.pj=!0):this.wia=!0),this.Ln()&&(this.or(),this.wL()&&!d&&this.zD(!0)),this.zi&&this.Ida()));this.rh()};f.prototype.sha=
function(a,b){this.rd[b.axis]=!1;this.rh()};f.prototype.lY=function(a,b,c,d,e,f,g,q){var p,n;p={};p.axis=a;p.index=b;p.data=c;p.component=this;p.datasource=this.Ta;p.level=f;p.depth=q;p.extent=g;null!=e&&(p.parentElement=e.firstChild);a=d.key;null!=a&&null!=e&&this.JE(e,a);for(n in d)d.hasOwnProperty(n)&&(p[n]=d[n]);null!=this.wN&&this.wN.call(this,p);return p};f.prototype.wGa=function(a,b,c,d){var e=!1,f=!1,g,q,p,n,u,v,w;null==this.Zc&&(this.Zc=b.getLevelCount());0!=this.Zc&&(g=b.getCount(),q=c>
this.Zd,e=!1,p=q?this.yi:this.nk,n=this.Zd,u=this.Zc,v=this.o("colheader")+" "+this.o("header"),w=this.o("headercell")+" "+this.o("colheadercell"),f=!1,b=this.iM(a,b,"column",c,g,q,e,null,p,n,u,v,w,f),f||(f=b.tk,e=b.lu,0==f||0!=this.og&&void 0!=this.og||(this.og=f/g),this.Kt||(this.Kt=e,this.ad(a,this.Kt)),q?(this.Zd=c+g-1,this.yi+=f):(this.sd-=g,this.nk-=f),-1==d&&(d=this.Zd),!this.Lf("column")&&this.Mf()&&this.Zd+1>=d?this.vm=!0:this.vm=b.xG,0==this.sd&&0!=this.nk&&(this.Qq(a.firstChild,0,-1*this.nk,
this.ca.gc()?"right":"left",this.o("colheadercell")),this.nk=0)))};f.prototype.vGa=function(a,b,c,d){var e=!1,f=!1,g,q,p,n,u,v,w;null==this.je&&(this.je=b.getLevelCount());0!=this.je&&(g=b.getCount(),q=c>this.$c,e=!1,p=q?this.lk:this.mk,n=this.$c,u=this.je,v=this.o("colendheader")+" "+this.o("endheader"),w=this.o("endheadercell")+" "+this.o("colendheadercell"),f=!1,b=this.iM(a,b,"columnEnd",c,g,q,e,null,p,n,u,v,w,f),f||(f=b.tk,e=b.lu,0==f||0!=this.og&&void 0!=this.og||(this.og=f/g),this.Jt||(this.Jt=
e,this.ad(a,this.Jt)),q?(this.$c=c+g-1,this.lk+=f):(this.Bd-=g,this.mk-=f),-1==d&&(d=this.$c),!this.Lf("column")&&this.Mf()&&this.$c+1>=d?this.um=!0:this.um=b.xG,0==this.Bd&&0!=this.mk&&(this.Qq(a.firstChild,0,-1*this.mk,this.ca.gc()?"right":"left",this.o("colendheadercell")),this.mk=0)))};f.prototype.dfa=function(a,b,c,d,e,f){var g,q,p,n,u,v,w,y;null==this.Ac&&(this.Ac=b.getLevelCount());if(0!=this.Ac){g=b.getCount();n=(q=c>this.Bb)?this.ld:this.kf;e?(p=a.firstChild.childNodes[c-this.Zb],n=this.ta(p,
"top")):p=null;u=this.Bb;v=this.Ac;w=this.o("rowheader")+" "+this.o("header");y=this.o("row")+" "+this.o("headercell")+" "+this.o("rowheadercell");b=this.iM(a,b,"row",c,g,q,e,p,n,u,v,w,y,f);n=b.tk;u=b.lu;if(f)return b;0==n||0!=this.hc&&void 0!=this.hc||(this.hc=n/g);this.Ut||(this.Ut=u,this.ke(a,this.Ut));q?(-1!=this.Bb&&0!=g&&(e=a.firstChild.childNodes[this.Bb-this.Zb],null!=e&&this.q.pb(e,this.o("borderHorizontalNone"))),this.Bb=c+g-1,this.ld+=n):e?(c<this.Zb&&(this.Zb=c,this.kf=Math.max(0,this.kf-
n)),this.Bb+=g,this.ld=Math.max(0,this.ld+n),this.sja(p,n)):(this.Zb=Math.max(0,this.Zb-g),this.kf-=n);-1==d&&(d=this.Bb);!this.Lf("row")&&this.Mf()&&this.Bb+1>=d?this.qj=!0:this.qj=b.xG;0==this.Zb&&0!=this.kf&&(this.Qq(a.firstChild,0,-1*this.kf,"top",this.o("rowheadercell")),this.kf=0)}};f.prototype.cfa=function(a,b,c,d,e,f){var g,q,p,n,u,v,w,y;null==this.Pd&&(this.Pd=b.getLevelCount());if(0!=this.Pd){g=b.getCount();n=(q=c>this.zb)?this.Se:this.Ah;e?(p=a.firstChild.childNodes[c-this.Bc],n=this.ta(p,
"top")):p=null;u=this.zb;v=this.Pd;w=this.o("rowendheader")+" "+this.o("endheader");y=this.o("row")+" "+this.o("endheadercell")+" "+this.o("rowendheadercell");b=this.iM(a,b,"rowEnd",c,g,q,e,p,n,u,v,w,y,f);if(f)return b;n=b.tk;u=b.lu;if(f)return b;0==n||0!=this.hc&&void 0!=this.hc||(this.hc=n/g);this.Tt||(this.Tt=u,this.ke(a,this.Tt));q?(-1!=this.zb&&0!=g&&(e=a.firstChild.childNodes[this.zb-this.Bc],null!=e&&this.q.pb(e,this.o("borderHorizontalNone"))),this.zb=c+g-1,this.Se+=n):e?(c<this.Bc&&(this.Bc=
c,this.Ah=Math.max(0,this.Ah-n)),this.zb+=g,this.Se=Math.max(0,this.Se+n),this.sja(p,n)):(this.Bc=Math.max(0,this.Bc-g),this.Ah-=n);-1==d&&(d=this.zb);!this.Lf("row")&&this.Mf()&&this.zb+1>=d?this.pj=!0:this.pj=b.xG;0==this.Bc&&0!=this.Ah&&(this.Qq(a.firstChild,0,-1*this.Ah,"top",this.o("rowendheadercell")),this.Ah=0)}};f.prototype.iM=function(a,b,c,d,e,f,g,q,p,n,u,v,w,y){var x,z,C,E,B,K,I,Q;B=(Q=-1!=c.indexOf("column"))?"height":"width";z=!1;E=C=0;if(!y){if(0==e&&this.Lf(c))return{tk:C,lu:E,xG:!0};
x=a.firstChild;-1==n&&""==a.className&&(a.className=v,a.style[B]="",x.style[B]="")}n=this.pa.kr(c);v=document.createDocumentFragment();for(B=0;0<e-B;)f?(E=d+B,I=Q?p+C:0,K=Q?0:p+C):(E=d+(e-1-B),I=Q?p-C:0,K=Q?0:p-C),E=this.Cn(v,E,0,I,K,f,g,n,b,c,w,u),B+=E.count,C+=E.tk,E=E.lu;if(y)return v;f?x.appendChild(v):g?x.insertBefore(v,q):x.insertBefore(v,x.firstChild);a.hasChildNodes()||g||a.appendChild(x);return{tk:C,lu:E,xG:z}};f.prototype.oW=function(a,b,c,d,e){null!=a?(d=a.call(this,b),null!=d&&(null===
d.parentNode||d.parentNode instanceof DocumentFragment?c.appendChild(d):null==d.parentNode&&d.toString&&(a=document.createElement("span"),a.className=e,a.appendChild(document.createTextNode(d.toString())),c.appendChild(a))),this.OI(c)):(null!=d&&"object"===typeof d&&d.hasOwnProperty("data")&&(d=d.data),null==d&&(d=""),a=document.createElement("span"),a.className=e,a.appendChild(document.createTextNode(d.toString())),c.appendChild(a))};f.prototype.Cn=function(a,b,c,d,e,f,g,q,p,n,u,v){var w,y,x,z,C,
E,B,K,I,Q,A,J,D,M,H,N,Y,L,S,F;Y=N=L=H=0;"row"===n?(F="row",D=this.qa,w="width",J=this.fG,y="height",x="top",z=e,C=this.ca.gc()?"right":"left",e=d,E=this.Zb,B=this.Bb):"rowEnd"==n?(F="row",D=this.La,w="width",J=this.PN,y="height",x="top",z=e,C=this.ca.gc()?"left":"right",e=d,E=this.Bc,B=this.zb):"column"==n?(F="column",D=this.tb,w="height",J=this.Lt,y="width",x=this.ca.gc()?"right":"left",z=d,C="top",E=this.sd,B=this.Zd):(F="column",D=this.Pb,w="height",J=this.tN,y="width",x=this.ca.gc()?"right":"left",
z=d,C="bottom",E=this.Bd,B=this.$c);K=p.getExtent(b,c);d=K.extent;I=K.more.before;Q=K.more.after;K=p.getDepth(b,c);if(I&&b===B+1){A=this.zJ(b-1,c,0,null,D,v);this.ii(A,"extent",this.ec(A,"extent")+d);D=A.firstChild;H=this.ta(D,w);for(w=0;w<d;)M="column"===n||"columnEnd"===n?this.Cn(A,b+w,c+K,z,e+H,f,g,q,p,n,u,v):this.Cn(A,b+w,c+K,e+H,z,f,g,q,p,n,u,v),z+=M.tk,N+=M.tk,Y+=M.count,w+=M.count;this.ma(D,this.ta(D,y)+N,y)}else if(Q&&b===E-1){A=this.zJ(b+1,c,0,null,D,v);this.ii(A,"extent",this.ec(A,"extent")+
d);this.ii(A,"start",this.ec(A,"start")-d);D=A.firstChild;H=this.ta(D,w);for(w=0;w<d;)M="column"===n||"columnEnd"===n?this.Cn(A,b-w,c+K,z,e+H,f,g,q,p,n,u,v):this.Cn(A,b-w,c+K,e+H,z,f,g,q,p,n,u,v),z-=M.tk,N+=M.tk,Y+=M.count,w+=M.count;this.ma(D,this.ta(D,y)+N,y);this.ma(D,z,x)}else{E=p.getData(b,c);B=p.getMetadata(b,c);Q=document.createElement("div");Q.className=this.o("headercellcontent");D=document.createElement("div");D.appendChild(Q);I=this.lY(n,b,E,B,D,c,d,K);D.id=this.Ura(n,I.key);D[this.ca.Gc("context")]=
I;L=this.pa.NM(n,I);S=this.pa.UM(n,I);null!=L&&(D.style.cssText=L);D.className=u;null!=S&&(D.className+=" "+S);for(L=0;L<K;L++)H+=this.a8(c+L,D,J,w);this.ma(D,z,x);this.ma(D,e,C);this.ma(D,H,w);C=this.pD(D,I.key,F,y);this.ii(D,"depth",K);c!=v-1&&(A=document.createElement("div"),A.className=this.o("groupingcontainer"),A.appendChild(D),this.ii(A,"start",f?b:b-d+1),this.ii(A,"extent",d),this.ii(A,"level",c));if(c+K==v)this.ma(D,C,y),N+=C,Y++,L=H,f||g||this.ma(D,z-C,x);else{for(w=0;w<d;w++)M=f?b+w:b-
w,M="column"===n||"columnEnd"===n?this.Cn(A,M,c+K,z,e+H,f,g,q,p,n,u,v):this.Cn(A,M,c+K,e+H,z,f,g,q,p,n,u,v),C=M.tk,z=f?z+C:z-C,N+=C,Y+=M.count,w+=M.count-1;L=H+M.lu;f||g||this.ma(D,z,x);this.ma(D,N,y)}"columnEnd"==n&&this.HZ&&this.q.nb(D,this.o("borderHorizontalSmall"));"rowEnd"==n&&this.IZ&&this.q.nb(D,this.o("borderVerticalSmall"));this.Q$(n,I)&&this.ii(D,"resizable","true");null!=A?this.ba.appendChild(A):this.ba.appendChild(D);this.oW(q,I,Q,E,this.o("headercelltext"));"column"===n&&this.RD(n,I)&&
(null!=B.sortDirection&&null==this.Qd&&(this.Qd={},this.Qd.key=B.key,this.Qd.direction=B.sortDirection,this.Qd.axis=n),c=this.G4(I),D.appendChild(c),this.ii(D,"sortable","true"));f?null!=A?a.appendChild(A):a.appendChild(D):null!=A?a.firstChild?this.q.Aa(a.firstChild,this.o("groupingcontainer"))?a.insertBefore(A,a.firstChild):(this.q.Aa(a.firstChild,this.o("headercell"))||this.q.Aa(a.firstChild,this.o("endheadercell")))&&a.insertBefore(A,a.firstChild.nextSibling):a.appendChild(A):this.q.Aa(a,this.o("groupingcontainer"))?
a.insertBefore(D,a.firstChild.nextSibling):a.insertBefore(D,a.firstChild)}"column"===n||"columnEnd"===n?this.Mv(b+d-1)&&this.q.nb(D,this.o("borderVerticalNone")):this.Nv(b+d-1)&&!g&&this.q.nb(D,this.o("borderHorizontalNone"));a={};a.lu=L;a.tk=N;a.count=Y;return a};f.prototype.a8=function(a,b,c,d){var e;e=c[a];if(null!=e)return e;e=this.ta(b,d);return c[a]=e};f.prototype.zJ=function(a,b,c,d,e,f){var g,q,p,n;null==d?(d=e.firstChild.childNodes,n=0):n=1;if(c===f-1)return d[0].parentNode;for(;n<d.length;){g=
this.ec(d[n],"start");q=this.ec(d[n],"extent");p=this.ec(d[n].firstChild,"depth");if(a>=g&&a<g+q)return b<c+p?d[n]:this.zJ(a,b,c+p,d[n].childNodes,e,f);n++}return null};f.prototype.eb=function(a,b,c,d,e){if(0>b)return null;if(1===d)return b=c.firstChild.childNodes,b[a-e];e=this.zJ(a,b,0,null,c,d);if(null==e)return null;if(b<=this.ec(e,"level")+this.ec(e.firstChild,"depth")-1)return e.firstChild;b=this.ec(e,"start");return e.childNodes[a-b+1]};f.prototype.Aua=function(a,b){var c;null==this.Lt&&(this.Lt=
[]);c=this.Lt[a];if(null!=c)return c;c=this.xb(b);return this.Lt[a]=c};f.prototype.ec=function(a,b){var c=a.getAttribute(this.ca.Gc(b));return parseInt(c,10)};f.prototype.ii=function(a,b,c){a.setAttribute(this.ca.Gc(b),c)};f.prototype.yGa=function(){var a,b;a=document.createElement("div");a.id=this.xe("databody");a.className=this.o("databody");a.tabIndex="-1";this.ga=a;a.addEventListener?a.addEventListener("scroll",this.yha.bind(this),!1):a.attachEvent("onscroll",this.yha.bind(this));b=document.createElement("div");
b.className=this.o("scroller")+(this.q.Od()?" "+this.o("scroller-mobile"):"");a.appendChild(b);this.fetchCells(a,0,0);return a};f.prototype.fetchCells=function(a,b,c,d,e,f){this.rd.cells||(null==d&&(d=this.gm("row")),null==e&&(e=this.gm("column")),b={axis:"row",start:b,count:d},a={axis:"column",start:c,count:e,databody:a},this.rd.cells={rowRange:b,columnRange:a},f=null!=f&&null!=f.success?f.success:this.cZ,this.hB(),this.dp(),this.Ta.fetchCells([b,a],{success:f,error:this.XM},{success:this,error:this}))};
f.prototype.IJa=function(a){var b,c;b=a[0];a=a[1];c=this.rd.cells;return b==c.rowRange&&a==c.columnRange};f.prototype.HJa=function(a){var b,c,d;if(isNaN(this.hc)||isNaN(this.og)||null!=this.nm||!this.zi)return!0;b=a[0].start;a=a[1].start;c=this.Sy(this.Kb,this.QA,"row");d=this.Sy(this.rc,this.PA,"column");return c.start==b&&d.start==a};f.prototype.cZ=function(a,b,c){var d,e,f,g,q,p,n,u,v,w,y,x,z;d=this.Ta.getCount("row");e=this.Ta.getCount("column");if(void 0===c){c=!1;if(!this.IJa(b)){this.rh();
return}if(!this.GN||this.HJa(b)&&!this.yia)this.GN=!1;else{this.yia=this.rd.cells=!1;this.hZ(this.rc,this.Kb);this.rh();return}}this.KY();f=b[0];g=f.start;q=a.getCount("row");p=0<q&&(g>this.ob||g+q<=this.Ea);if(0==q&&this.Lf("row")&&0<f.count||p&&this.Mf()&&!this.Lf("row")&&this.ob+q+1>=d||q<f.count)this.qk=!0;n=b[1];b=n.start;d=a.getCount("column");f=0<d&&(b>this.qd||b+d==this.Lb);if(0==d&&this.Lf("column")&&0<n.count||f&&this.Mf()&&!this.Lf("column")&&this.qd+d+1>=e||d<n.count)this.Qn=!0;e=this.ga;
null==e&&(e=n.databody);n=e.firstChild;if(p||c)if((y=!c&&g>=this.Ea?!0:!1)?(v=n.childNodes[g-this.Ea],u=this.ed):c?(v=n.childNodes[g-this.Ea],u=this.ta(v,"top")):u=this.gd,x=document.createDocumentFragment(),u=this.dR(x,y||c,u,g,q,b,f,a),a=u.totalRowHeight,z=u.avgWidth,u=a/q,y){n.appendChild(x);if(-1!=this.ob&&0!=q&&(n=n.childNodes[this.ob-this.Ea],null!=n))for(n=n.childNodes,v=0;v<n.length;v+=1)this.q.pb(n,this.o("borderHorizontalNone"));this.ob=g+q-1;this.ed+=a}else c?(n.insertBefore(x,v),g<this.Ea&&
(this.Ea=g,this.gd=Math.max(0,this.gd-a)),this.ob+=q,this.ed+=a,this.gx(v,a)):(n.insertBefore(x,n.firstChild),this.Ea-=q,this.gd-=a);else f&&(v=n.childNodes,q==v.length&&(z=this.kpa(v,g,q,b,a)));void 0==z||0!=this.og&&void 0!=this.og||(this.og=z);void 0==u||0!=this.hc&&void 0!=this.hc||(this.hc=u);this.Ida();f&&(b<this.Lb?this.Lb-=d:this.qd=b+d-1);0<=this.qd&&0<=this.ob&&(this.tia=!0);0==this.Lb&&0!=this.sm&&(this.yda(-1*this.sm,!1,null,0,this.qd,null,this.ca.gc()?"right":"left"),this.sm=0);0==this.Ea&&
0!=this.gd&&(this.gx(this.ga.firstChild.firstChild,-this.gd),this.gd=0);this.rd.cells=!1;this.zi&&this.$W();this.Ln()&&(this.or(),null!=this.rm?this.qg(this.rm):null!=this.Lp?this.lf(this.Lp):this.kN()||null==this.dg()||this.q.Aa(this.dg(),this.o("focus"))||(this.cx=!1,this.pn()),this.yc()&&this.gM(g,g+q),this.k_(),this.q.Od()&&window.hasOwnProperty("WebKitCSSMatrix")&&(e.style.webkitTransform="translate3d(0, 0, 0)",null!=this.qa&&(this.qa.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.tb&&
(this.tb.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.La&&(this.La.style.webkitTransform="translate3d(0, 0, 0)"),null!=this.Pb&&(this.Pb.style.webkitTransform="translate3d(0, 0, 0)")),this.wL()?this.zD(!0):this.zi&&((!0==this.eG||this.ld>this.xb(e)&&this.getHeight()-this.xb(this.tb)-this.xb(this.Pb)>this.xb(e)||this.yi>this.Wb(e)&&this.getWidth()-this.Wb(this.qa)-this.Wb(this.La)>this.Wb(e))&&this.fB(),p?y?w="top":c||(w="bottom"):f&&(w=b==this.Lb?"right":"left"),this.l5(w),this.dr(),this.Ln()&&
this.fireEvent("ready",{})));this.rh()};f.prototype.fza=function(a,b,c,d,e){var g,s,q,p,n,u,v,w,y,x,z,C,E,B,K,I,Q,A,J;g=this;g.dp();s=d>this.ob;q=this.ga.firstChild;p=null==b?!1:!0;I=null==c?!1:!0;u=q.childNodes[d-this.Ea-1];w=this.ta(u,"top");y=w+this.xb(u);this.vh(u,this.xh("z-index"),10);p&&(n=this.qa.firstChild,v=n.childNodes[d-this.Ea-1],this.vh(v,this.xh("z-index"),10));I&&(Q=this.La.firstChild,A=Q.childNodes[d-this.Ea-1],this.vh(A,this.xh("z-index"),10));for(x=0;x<a.childNodes.length;x++)z=
a.childNodes[x],C=y+this.ta(z,"top"),E=w-C,this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E),p&&(z=b.childNodes[x],this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E)),I&&(z=c.childNodes[x],this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E));for(x=d-this.Ea;x<q.childNodes.length;x++)z=q.childNodes[x],C=e+this.ta(z,"top"),E=-e,this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E),p&&(z=n.childNodes[x],this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E)),I&&(z=Q.childNodes[x],this.ma(z,C,"top"),this.ff(z,0,0,"linear",0,E));
this.ob+=a.childNodes.length;this.ed+=e;p&&(this.Bb+=b.childNodes.length,this.ld+=e);I&&(this.zb+=b.childNodes.length,this.Se+=e);s?(q.appendChild(a),p&&n.appendChild(b),I&&Q.appendChild(c)):(q.insertBefore(a,u.nextSibling),p&&n.insertBefore(b,v.nextSibling),I&&Q.insertBefore(c,A.nextSibling));this.ad(q,this.ed-this.gd);this.fB();this.BG();B=q.lastChild;K=function(){g.o9();B.removeEventListener("transitionend",K,!1)};B.addEventListener("transitionend",K,!1);this.HA=!0;J=g.RA?1:f.n0;setTimeout(function(){var a;
J=f.n0;for(a=q.childNodes.length-1;a>=d-g.Ea;a--)g.ff(q.childNodes[a],J+"ms",0,"ease-out",0,0),p&&g.ff(n.childNodes[a],J+"ms",0,"ease-out",0,0),I&&g.ff(Q.childNodes[a],J+"ms",0,"ease-out",0,0)},0)};f.prototype.kpa=function(a,b,c,d,e){var f,g,q,p,n,u;f=this.pa.kr("cell");g=this.pa.JM();q=this.pa.PY();p=this.pa.aZ();for(u=0;u<c;u+=1)n=a[u],n=this.eM(e,n,b+u,f,!1,d,u==c-1,g,q,p),n=n.avgWidth;return n};f.prototype.dR=function(a,b,c,d,e,f,g,q){var p,n,u,v,w,y,x,z,C,E;p=this.pa.kr("cell");n=this.pa.JM();
u=this.pa.XY();v=this.pa.PY();w=this.pa.aZ();for(E=z=0;E<e;E+=1)x=b?d+E:d+(e-1-E),y=document.createElement("div"),y.className=this.o("row"),1===Math.floor(x/u)%2&&(y.className+=" "+this.o("banded")),this.ba.appendChild(y),C=this.eM(q,y,x,p,!0,f,E==e-1&&g,n,v,w,c),x=C.avgWidth,C=C.height,z+=C,b?(y.style.top=c+"px",c+=C,a.appendChild(y)):(c-=C,y.style.top=c+"px",a.insertBefore(y,a.firstChild));return{avgWidth:x,totalRowHeight:z,top:c}};f.prototype.gx=function(a,b){for(;a;){var c=this.ta(a,"top")+b;
a.style.top=c+"px";a=a.nextSibling}};f.prototype.fO=function(a,b){this.gx(a,-b)};f.prototype.sja=function(a,b){for(;a;){var c=this.ta(a,"top")+b;a.style.top=c+"px";a=a.nextSibling}};f.prototype.tja=function(a,b){this.gx(a,-b)};f.prototype.VGa=function(a,b,c,d){var e,f;e={};e.parentElement=d.firstChild;e.indexes=a;e.cell=b;e.data=null!=b&&"object"===typeof b&&b.hasOwnProperty("data")?b.data:b;e.component=this;e.datasource=this.Ta;e.mode="navigation";for(f in c)c.hasOwnProperty(f)&&(e[f]=c[f]);null!=
this.wN&&this.wN.call(this,e);return e};f.prototype.Ora=function(a){return this.xe("r"+a.row+"c"+a.column)};f.prototype.Ura=function(a,b){return this.xe(("columnEnd"==a?"ce":"rowEnd"==a?"re":a.charAt(0))+b)};f.prototype.WGa=function(){return document.createElement("div")};f.prototype.Mw=function(){return-1===this.Bb?0:this.Ut};f.prototype.jA=function(){return-1===this.Zd?0:this.Kt};f.prototype.YY=function(){return-1===this.zb?0:this.Tt};f.prototype.IY=function(){return-1===this.$c?0:this.Jt};f.prototype.Kga=
function(a,b){var c,d,e;c=this.jA();if(null!=b)return c+b;d=this.ta(a,"top");e=this.mp(a);return isNaN(d)||isNaN(e)?c:c+d+e};f.prototype.eM=function(a,b,c,d,e,f,g,q,p,n,u){var v,w,y,x,z,C,E,B,K,I,Q,A,J,D,M,H,N;v=f>=this.Lb;y=b.firstChild;C=e||!v?this.sm:this.mj;this.q.Od()&&this.q.Aa(b.lastChild,this.o("toucharea"))&&(M=this.q.Aa(b.children[b.children.length-2],this.o("toucharea"))?b.children[b.children.length-2]:b.lastChild);E=this.ca.gc()?"right":"left";B=0;K=a.getCount("column");for(A=0;A<K;A+=
1)D=v||e?f+A:f+(K-1-A),I={row:c,column:D},Q=a.getData(I),x=a.getMetadata(I),J=this.WGa(),J.setAttribute("tabIndex",-1),w=document.createElement("div"),w.className=this.o("cellcontent"),J.appendChild(w),I=this.VGa(I,Q,x,J),J.id=this.Ora(I.keys),J[this.ca.Gc("context")]=I,null==this.ic(b)&&(H=I.keys.row,this.JE(b,H),-1==this.Bb?(z=this.lY("row",c,null,{key:H},null,0,0,1),x=this.pa.NM("row",z),z=this.pa.UM("row",z),N=document.createElement("div"),N.style.cssText=x,N.className=this.o("row")+" "+z,H=this.pD(N,
H,"row","height")):H=this.pD(b,H,"row","height"),this.ad(b,H)),x=this.pa.NM("cell",I),null!=x&&(J.style.cssText=x),""!=J.style.height&&(J.style.height=""),""!=J.style.width&&(J.style.width=""),z=1===Math.floor(D/q)%2?this.o("cell")+" "+this.o("banded")+" "+this.o("formcontrol"):this.o("cell")+" "+this.o("formcontrol"),x=this.pa.UM("cell",I),J.className=null!=x?z+" "+x:z,-1!=this.Zd||0!=c||this.zi?x=this.pD(J,I.keys.column,"column","width"):(z=this.lY("column",D,null,{key:I.keys.column},null,0,0,1),
x=this.pa.NM("column",z),z=this.pa.UM("column",z),N=document.createElement("div"),N.style.cssText=x,N.className=this.o("colheadercell")+" "+this.o("headercell")+" "+z,x=this.pD(N,I.keys.column,"column","width")),this.ke(J,x),("hidden"===n||this.Mv(D)&&(this.Mw()+C+x>=this.getWidth()||-1!=this.zb))&&this.q.nb(J,this.o("borderVerticalNone")),"hidden"===p?this.q.nb(J,this.o("borderHorizontalNone")):this.Nv(c)&&(null!=u&&D==f&&(u+=this.xb(b)),(this.Kga(b,u)>=this.getHeight()||-1!=this.$c)&&this.q.nb(J,
this.o("borderHorizontalNone"))),v||e?this.ma(J,C,E):this.ma(J,C-x,E),v||e?(M?b.insertBefore(J,M):b.appendChild(J),C+=x):(b.insertBefore(J,y),y=J,C-=x),this.oW(d,I,w,Q,this.o("celltext")),g&&(v||e?this.mj+=x:this.sm-=x,B+=x);return g&&0<K?{avgWidth:B/K,height:H}:{avgWidth:null,height:H}};f.prototype.XM=function(a,b){var c,d;this.rd.cells=!1;this.or();null==this.ga.firstChild?this.wL()&&this.zD(!0):(c=b[0],d=b[1],d.start+d.count-1>this.qd&&(this.um=this.vm=this.Qn=!0),c.start+c.count-1>this.ob&&(this.pj=
this.qj=this.qk=!0))};f.prototype.hB=function(){var a;a=this.ca.yh("msgFetchingData");"block"!=this.tm.style.display&&(this.tm.textContent=a,this.tm.style.display="block",a=this.getWidth()/2-this.tm.offsetWidth/2,this.tm.style.left=a+"px")};f.prototype.or=function(){this.tm.style.display="none"};f.prototype.vF=function(a,b){var c,d,e,f,g,q;c=[];q=this.ca.Gc("tabMod");if(document.evaluate)for(d=document.evaluate(".//*[@tabindex\x3e\x3d0]|.//*[@"+q+"\x3e\x3d0]|.//input|.//select|.//textarea|.//button|.//a|.//INPUT|.//SELECT|.//TEXTAREA|.//BUTTON|.//A",
a,null,XPathResult.ANY_TYPE,null),e=d.iterateNext();e;)!e.disabled&&"none"!=e.style.display&&(b||!e.tabIndex||0<e.tabIndex||0<=parseInt(e.getAttribute(q),10))&&c.push(e),e=d.iterateNext();else for(d=a.querySelectorAll("input, select, button, a, textarea, [tabIndex], ["+q+"]"),f=d.length,g=0;g<f;g+=1)e=d[g],!e.disabled&&"none"!=e.style.display&&(b||!e.tabIndex||0<=e.tabIndex||0<=parseInt(e.getAttribute(q),10))&&c.push(e);return c};f.prototype.OI=function(a){var b,c,d;d=this.ca.Gc("tabMod");a=this.vF(a);
for(b=0;b<a.length;b++)if(c=parseInt(a[b].tabIndex,10),isNaN(c)||0<=c)a[b].setAttribute(d,isNaN(c)?-1:c),a[b].setAttribute("tabIndex",-1)};f.prototype.YI=function(a){var b,c,d;d=this.ca.Gc("tabMod");a=this.vF(a,!1);for(b=0;b<a.length;b++)c=parseInt(a[b].getAttribute(d),10),a[b].removeAttribute(d),-1==c?a[b].removeAttribute("tabIndex"):a[b].setAttribute("tabIndex",c)};f.prototype.O$=function(a){if(null==a||a==this.hk()||this.q.Aa(a,this.o("cell")))return!1;var b=a.tagName;return"INPUT"===b||"TEXTAREA"===
b||"SELECT"===b||"BUTTON"===b||"A"===b||this.q.Aa(a,this.o("active"))||null!=a.getAttribute("tabIndex")&&0<=parseInt(a.getAttribute("tabIndex"),10)&&this.fk(a)!=a?!0:this.O$(a.parentNode)};f.prototype.sL=function(a){var b;a=this.vF(a,!0);if(0<a.length){b=a[0];b.focus();if(b.setSelectionRange&&b.value)try{b.setSelectionRange(b.value.length,b.value.length)}catch(c){}!0===this.eba&&"function"===typeof a[0].select&&b.select();return!0}return!1};f.prototype.yha=function(a){if(!this.q.Od())if(!0==this.Hia)this.Hia=
!1;else{var b;a||(a=window.event);b=a.target?a.target:a.srcElement;a=this.q.XHa(b);this.scrollTo(a,b.scrollTop)}};f.prototype.GT=function(){return this.H$("column")&&!this.Qn?Number.MAX_VALUE:this.bx};f.prototype.FJ=function(){return this.H$("row")&&!this.qk?Number.MAX_VALUE:this.$w};f.prototype.scroll=function(a){var b;null!=a.position&&(b=Math.max(0,Math.min(this.GT(),a.position.scrollX)),a=Math.max(0,Math.min(this.FJ(),a.position.scrollY)),this.$U(b,a))};o_("DvtDataGrid.prototype.scroll",f.prototype.scroll,
void 0);f.prototype.Ir=function(a,b){var c,d;0!=a&&0!=b&&(Math.abs(a)>Math.abs(b)?(b=0,this.DN=null):(a=0,this.UF=null));c=Math.max(0,Math.min(this.GT(),this.rc-a));d=Math.max(0,Math.min(this.FJ(),this.Kb-b));this.$U(c,d)};f.prototype.$U=function(a,b){this.q.Od()?this.scrollTo(a,b):(this.q.wLa(this.ga,a),this.ga.scrollTop=b)};f.prototype.AS=function(){this.ga.firstChild.style.webkitTransitionDuration="0ms";this.qa.firstChild.style.webkitTransitionDuration="0ms";this.tb.firstChild.style.webkitTransitionDuration=
"0ms"};f.prototype.Ada=function(a,b){return this.Mf()?!1:a+this.WM()<this.ET()||b+this.xA()<this.HT()||a>this.sD()||b>this.rD()};f.prototype.scrollTo=function(a,b){a!=this.rc&&(this.PA=this.rc,this.rc=a);b!=this.Kb&&(this.QA=this.Kb,this.Kb=b);this.q.Od()||(this.Ada(a,b)?this.hZ(a,b):this.dr());this.$W();this.q.Od()||this.QA===b&&this.PA===a||this.fireEvent("scroll",{event:null,ui:{scrollX:a,scrollY:b}});this.Mpa();null!=this.IA&&(this.Fc(this.IA,null,!1),this.IA=null);null!=this.rm&&this.wK(this.rm)===
f.Cu&&(this.Vj()&&this.rm.row==this.N.indexes.row&&this.rm.column==this.N.indexes.column&&this.pn(),this.rm=null);null!=this.Lp&&(this.Vj()||this.Lp.axis!=this.N.axis||this.Lp.index!=this.N.index||this.Lp.level!=this.N.level||this.pn(),this.Lp=null)};f.prototype.xW=function(){var a;null!=this.ax&&(a=this.ga.firstChild,a.removeEventListener("webkitTransitionEnd",this.ax));this.yc()&&this.Nca();this.fireEvent("scroll",{event:null,ui:{scrollX:this.rc,scrollY:this.Kb}});this.Ada(this.rc,this.Kb)?this.hZ(this.rc,
this.Kb):this.dr()};f.prototype.sqa=function(){var a,b,c,d,e,g,s;a=this.rc;b=this.Kb;c=this.ga.firstChild;d=this.tb.firstChild;e=this.qa.firstChild;g=this.Pb.firstChild;s=this.La.firstChild;c.removeEventListener("webkitTransitionEnd",this.JZ);c.style.webkitTransitionDuration=f.nB+"ms";e.style.webkitTransitionDuration=f.nB+"ms";s.style.webkitTransitionDuration=f.nB+"ms";d.style.webkitTransitionDuration=f.nB+"ms";g.style.webkitTransitionDuration=f.nB+"ms";null==this.ax&&(this.ax=this.xW.bind(this));
c.addEventListener("webkitTransitionEnd",this.ax);this.ca.gc()?(c.style.webkitTransform="translate3d("+a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+a+"px, 0, 0)",g.style.webkitTransform="translate3d("+a+"px, 0, 0)"):(c.style.webkitTransform="translate3d("+-a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+-a+"px, 0, 0)",g.style.webkitTransform="translate3d("+-a+"px, 0, 0)");e.style.webkitTransform="translate3d(0, "+-b+"px, 0)";s.style.webkitTransform="translate3d(0, "+-b+
"px, 0)";this.DN=this.UF=null};f.prototype.$W=function(){var a,b,c,d,e,f,g;a=this.rc;b=this.Kb;c=this.ga.firstChild;d=this.tb.firstChild;e=this.qa.firstChild;f=this.Pb.firstChild;g=this.La.firstChild;this.q.Od()&&window.hasOwnProperty("WebKitCSSMatrix")?(null!=this.UF||null!=this.DN?(null!=this.UF?a+=this.UF:b+=this.DN,null==this.JZ&&(this.JZ=this.sqa.bind(this)),c.addEventListener("webkitTransitionEnd",this.JZ)):"0ms"==c.style.webkitTransitionDuration?this.xW():(null==this.ax&&(this.ax=this.xW.bind(this)),
c.addEventListener("webkitTransitionEnd",this.ax)),this.ca.gc()?(c.style.webkitTransform="translate3d("+a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+a+"px, 0, 0)",f.style.webkitTransform="translate3d("+a+"px, 0, 0)"):(c.style.webkitTransform="translate3d("+-a+"px, "+-b+"px, 0)",d.style.webkitTransform="translate3d("+-a+"px, 0, 0)",f.style.webkitTransform="translate3d("+-a+"px, 0, 0)"),e.style.webkitTransform="translate3d(0, "+-b+"px, 0)",g.style.webkitTransform="translate3d(0, "+-b+
"px, 0)"):(c=this.ca.gc()?"right":"left",this.ma(d,-a,c),this.ma(f,-a,c),this.ma(e,-b,"top"),this.ma(g,-b,"top"))};f.prototype.Mpa=function(){var a,b,c;a=this.ga.firstChild;b=this.xb(a);c=this.Wb(a);(this.rD()>b||this.Ta.getCount("row")==this.BT()+1&&!this.Lf("row")&&-1<this.BT())&&this.ad(a,this.rD());(this.sD()>c||this.Ta.getCount("column")==this.FT()+1&&!this.Lf("column")&&-1<this.FT())&&this.ke(a,this.sD())};f.prototype.Sy=function(a,b,c){var d,e,f,g,q,p,n,u;if(b!=a){if("row"==c?(g=this.xb(this.ga.firstChild),
q=this.q.l8(),p=this.FJ(),n=this.hc,u=this.On?this.q.yp():0):"column"==c&&(g=this.Wb(this.ga.firstChild),q=this.q.m8(),p=this.GT(),n=this.og,u=this.Pn?this.q.yp():0),b=Math.max(Math.min(a/g,1),0),f=this.Ta.getCount(c),c=this.gm(c),d=Math.floor(f*b),e=q<=g?Math.min(a,p):d*n,1==b||a+c*n>g-u)d=Math.max(f-c,0),e=Math.max(g-c*n,0)}else"row"==c?(d=this.Ea,e=this.gd):"column"==c&&(d=this.Lb,e=this.sm);return{start:d,startPixel:e}};f.prototype.hZ=function(a,b){var c,d,e,f;this.GN=!0;this.Ln()&&(d=this.Sy(b,
this.QA,"row"),c=d.start,e=d.startPixel,f=this.Sy(a,this.PA,"column"),d=f.start,f=f.startPixel,this.tia&&(this.Ea=c,this.ob=-1,this.ed=this.gd=e,this.Lb=d,this.qd=-1,this.mj=this.sm=f),this.xia&&(this.Zb=c,this.Bb=-1,this.ld=this.kf=e),this.wia&&(this.Bc=c,this.zb=-1,this.Se=this.Ah=e),this.via&&(this.sd=d,this.Zd=-1,this.yi=this.nk=f),this.uia&&(this.Bd=d,this.$c=-1,this.lk=this.mk=f),this.um=this.vm=this.Qn=this.pj=this.qj=this.qk=!1,this.fetchHeaders("row",c,this.qa,this.La,void 0,{success:function(a,
b,c){this.xha(a,b,c)}}),this.fetchHeaders("column",d,this.tb,this.Pb,void 0,{success:function(a,b,c){this.mha(a,b,c)}}),this.fetchCells(this.ga,c,d,null,null,{success:function(a,b){this.iha(a,b)}}))};f.prototype.xha=function(a,b,c){var d,e;d=this.qa.firstChild;e=this.La.firstChild;null!=d&&this.q.empty(d);null!=e&&this.q.empty(e);this.fN(a,b,c,!1)};f.prototype.mha=function(a,b,c){var d,e;d=this.tb.firstChild;e=this.Pb.firstChild;null!=d&&this.q.empty(d);null!=e&&this.q.empty(e);this.fN(a,b,c,!1)};
f.prototype.iha=function(a,b){var c=this.ga.firstChild;null!=c&&this.q.empty(c);this.cZ(a,b)};f.prototype.l5=function(a){var b,c,d,e;!this.Mf()&&this.Eza()&&(b=this.rc,c=this.xD(),d=this.Kb,e=this.Cv(),"top"==a&&d>this.HT()?(this.ZKa(this.ga),this.XKa()):"bottom"==a&&e<this.rD()?(this.YKa(this.ga),this.WKa()):"left"==a&&b>this.ET()?(this.TKa(this.ga),this.RKa()):"right"==a&&c<this.sD()&&(this.UKa(this.ga),this.SKa()))};f.prototype.dr=function(){var a,b,c,d;this.Ln()&&((a=this.rc,b=this.xD()+f.o0,
c=this.Kb,d=this.Cv()+f.o0,!(this.rD()<=d)||this.qj&&this.pj&&this.qk)?this.HT()>c?(a=Math.max(0,this.q8()-this.gm("row")),b=Math.max(0,this.q8()-a),this.fetchHeaders("row",a,this.qa,this.La,b),this.fetchCells(this.ga,a,this.Lb,b,this.qd-this.Lb+1)):!(this.sD()<=b)||this.vm&&this.um&&this.Qn?this.ET()>a&&(a=Math.max(0,this.n8()-this.gm("column")),b=Math.max(0,this.n8()-a),this.fetchHeaders("column",a,this.tb,this.Pb,b),this.fetchCells(this.ga,this.Ea,a,this.ob-this.Ea+1,b)):(a=Math.max(0,this.FT()+
1),b=Math.max(0,this.gm("column")),this.fetchHeaders("column",a,this.tb,this.Pb,b),this.fetchCells(this.ga,this.Ea,a,this.ob-this.Ea+1,b)):(a=Math.max(0,this.BT()+1),b=Math.max(0,this.gm("row")),this.fetchHeaders("row",a,this.qa,this.La,b),this.fetchCells(this.ga,a,this.Lb,b,this.qd-this.Lb+1)))};f.prototype.FT=function(){return Math.max(Math.max(this.qd,this.Zd),this.$c)};f.prototype.n8=function(){return Math.max(Math.max(this.Lb,this.sd),this.Bd)};f.prototype.sD=function(){return Math.max(Math.max(this.mj,
this.yi),this.lk)};f.prototype.ET=function(){return Math.max(Math.max(this.sm,this.nk),this.mk)};f.prototype.BT=function(){return Math.max(Math.max(this.ob,this.Bb),this.zb)};f.prototype.q8=function(){return Math.max(Math.max(this.Ea,this.Zb),this.Bc)};f.prototype.rD=function(){return Math.max(Math.max(this.ed,this.ld),this.Se)};f.prototype.HT=function(){return Math.max(Math.max(this.gd,this.kf),this.Ah)};f.prototype.Eza=function(){var a=this.rJ(),b=this.dg();return"edit"==a&&this.mza(b)?this.vU(null,
b):!0};f.prototype.mza=function(a){var b,c;if(!this.Mf()&&(this.ob-this.Ea>this.Fu&&(c=this.ta(a.parentNode,"top"),b=this.xb(a),c+b<this.Kb||c<this.Kb+this.xA())||this.qd-this.Lb>this.Eu&&(b=this.ta(a,"left"),a=this.Wb(a),b+a<this.rc||b<this.rc+this.xA())))return!0};f.prototype.qG=function(a,b,c,d,e,f,g,q){var p,n,u,v,w=0,y=0;p=null==b?a.firstChild:b.nextSibling;if(null==p)return{pi:0,oi:0};n=(u=this.q.Aa(p,e))?p:p.firstChild;for(v=this.ta(n,f);c+v<q-d;){this.Kd(p);y+=v;w+=u?1:this.ec(p,"extent");
c+=v;p=null==b?a.firstChild:b.nextSibling;if(null==p)return{pi:w,oi:y};n=(u=this.q.Aa(p,e))?p:p.firstChild;v=this.ta(n,f)}u||(a=this.qG(p,p.firstChild,c,d,e,f,g,q),this.ii(p,"start",this.ec(p,"start")+a.pi),this.ii(p,"extent",this.ec(p,"extent")-a.pi),this.ma(n,this.ta(n,g)+a.oi,g),this.ma(n,this.ta(n,f)-a.oi,f),w+=a.pi,y+=a.oi);return{pi:w,oi:y}};f.prototype.pG=function(a,b,c,d,e){var f,g,q,p,n=0,u=0;f=a.lastChild;g=(q=this.q.Aa(f,d))?f:f.firstChild;for(p=this.ta(g,e);b-p>c;)this.Kd(f),u+=p,n+=q?
1:this.ec(f,"extent"),b-=p,f=a.lastChild,g=(q=this.q.Aa(f,d))?f:f.firstChild,p=this.ta(g,e);q||(a=this.pG(f,b,c,d,e),this.ii(f,"extent",this.ec(f,"extent")-a.pi),this.ma(g,this.ta(g,e)-a.oi,e),n+=a.pi,u+=a.oi);return{pi:n,oi:u}};f.prototype.RKa=function(){var a,b;this.Zd-this.sd>this.Eu&&(a=this.tb.firstChild,b=0,this.nk<=this.rc-b&&(b=this.qG(a,null,this.nk,b,this.o("colheadercell"),"width",this.ca.gc()?"right":"left",this.rc),this.nk+=b.oi,this.sd+=b.pi));this.$c-this.Bd>this.Eu&&(a=this.Pb.firstChild,
b=0,this.mk<this.rc-b&&(b=this.qG(a,null,this.mk,b,this.o("colendheadercell"),"width",this.ca.gc()?"right":"left",this.rc),this.mk+=b.oi,this.Bd+=b.pi))};f.prototype.TKa=function(a){var b,c,d,e,f,g;if(this.qd-this.Lb>this.Eu&&(a=a.firstChild,a=a.childNodes,c=b=0,!(1>a.length))){d=a[0].childNodes;for(e=0;e<d.length;e+=1)if(f=d[e],g=c,c=this.ta(f,"left"),c>this.rc-0){b=e-1;this.Lb+=b;this.sm=g;break}for(c=0;c<a.length;c+=1)for(d=a[c],e=0;e<b;e+=1)this.Kd(d.firstChild)}};f.prototype.SKa=function(){var a,
b;b=this.rc+this.WM()+0;this.Zd-this.sd>this.Eu&&(a=this.tb.firstChild,this.yi>b&&(this.vm&&(this.vm=!1),a=this.pG(a,this.yi,b,this.o("colheadercell"),"width"),this.yi-=a.oi,this.Zd-=a.pi));this.$c-this.Bd>this.Eu&&(a=this.Pb.firstChild,this.lk>b&&(this.um&&(this.um=!1),a=this.pG(a,this.lk,b,this.o("colendheadercell"),"width"),this.lk-=a.oi,this.$c-=a.pi))};f.prototype.UKa=function(a){var b,c,d,e,f;if(this.qd-this.Lb>this.Eu&&(a=a.firstChild,d=a.childNodes,a=this.rc+this.WM()+0,!(this.mj<=a||1>d.length)))for(this.Qn&&
(this.Qn=!1),b=d[0],c=b.lastChild,c=this.Wb(c);this.mj-c>a;){for(e=0;e<d.length;e+=1)f=d[e],this.Kd(f.lastChild);this.mj-=c;this.qd-=1;c=b.lastChild;c=this.Wb(c)}};f.prototype.XKa=function(){var a,b;this.Bb-this.Zb>this.Fu&&(a=this.qa.firstChild,b=0,this.kf>=this.Kb-b||(b=this.qG(a,null,this.kf,b,this.o("rowheadercell"),"height","top",this.Kb),this.kf+=b.oi,this.Zb+=b.pi));this.zb-this.Bc>this.Fu&&(a=this.La.firstChild,b=0,this.Ah>=this.Kb-b||(b=this.qG(a,null,this.Ah,b,this.o("rowendheadercell"),
"height","top",this.Kb),this.Ah+=b.oi,this.Bc+=b.pi))};f.prototype.ZKa=function(a){var b,c;if(this.ob-this.Ea>this.Fu&&(a=a.firstChild,!(this.gd>=this.Kb-0)))for(b=a.firstChild,c=this.xb(b);this.gd+c<this.Kb-0;){this.Kd(b);this.gd+=c;this.Ea+=1;b=a.firstChild;if(null==b)break;c=this.xb(b)}};f.prototype.WKa=function(){var a,b;b=this.Kb+this.xA()+0;this.Bb-this.Zb>this.Fu&&(a=this.qa.firstChild,this.ld<=b||(this.qj&&(this.qj=!1),a=this.pG(a,this.ld,b,this.o("rowheadercell"),"height"),this.ld-=a.oi,
this.Bb-=a.pi));this.zb-this.Bc>this.Fu&&(a=this.La.firstChild,this.Se<=b||(this.pj&&(this.pj=!1),a=this.pG(a,this.Se,b,this.o("rowendheadercell"),"height"),this.Se-=a.oi,this.zb-=a.pi))};f.prototype.YKa=function(a){var b,c,d;if(this.ob-this.Ea>this.Fu&&(a=a.firstChild,b=this.Kb+this.xA()+0,!(this.ed<=b)))for(this.qk&&(this.qk=!1),c=a.lastChild,d=this.xb(c);this.ed-d>b;)this.Kd(c),this.ed-=d,this.ob-=1,c=a.lastChild,d=this.xb(c)};f.prototype.nha=function(a,b,c){var d,e,f;f=a.originalEvent.target;
e=this.fk(f);"touch"===b&&null!=e&&(d={row:this.sA(e.parentNode),column:this.At(e)},!this.Mn()||!this.sK(d)||this.Vj()&&d.row!=this.N.indexes.row&&d.column!=this.N.indexes.column)&&(this.yc()?this.eZ(a.originalEvent):this.dZ(a.originalEvent));if(!this.q.Cza(f,this.ba)){if(null!=e)d={row:this.sA(e.parentNode),column:this.At(e)},this.Mn()&&this.sK(d)?(f=this.dg(),d=this.Vj()?"keyboard"===b?this.hT(f):this.hT(f,e):this.Y7(f,e)):(f=e,d=this.hT(f));else{e=this.cl(f);if(null==e)return;d=this.Y7(e);f=e}c.call(null,
{capabilities:d,launcher:f},a,b)}};o_("DvtDataGrid.prototype.handleContextMenuGesture",f.prototype.nha,void 0);f.prototype.hT=function(a,b){var c,d,e,f,g,q=!0,p=!0;c={resize:"disable",resizeWidth:"disable",resizeHeight:"disable",sortRow:"disable",sortCol:"disable",cut:"disable",paste:"disable",sortColAsc:"disable",sortColDsc:"disable"};if(null!=b&&(q=this.At(a)===this.At(b),p=a.parentNode===b.parentNode,!1===p&&!1===q))return c;d=this.Jw(a,"row");e=this.Jw(a,"column");f=this.ca.Gc("resizable");g=
this.ca.Gc("sortable");null!=e&&q&&("true"===e.getAttribute(f)&&(c.resize="enable",c.resizeWidth="enable"),"true"===e.getAttribute(g)&&(c.sortCol="enable",c.sortColAsc="enable",c.sortColDsc="enable",e=e.getAttribute(this.ca.Gc("sortDir")),"ascending"===e?c.sortColAsc="disable":"descending"===e&&(c.sortColDsc="disable")));p&&(this.xK()&&(c.cut="enable",c.paste="enable"),null!=d&&("true"===d.getAttribute(f)&&(c.resize="enable",c.resizeHeight="enable"),"true"===d.getAttribute(g)&&(c.sortRow="enable")));
return c};f.prototype.Y7=function(a,b){var c,d,e,f=!0,g=!0,q;c={resize:"disable",resizeWidth:"disable",resizeHeight:"disable",sortRow:"disable",sortCol:"disable",cut:"disable",paste:"disable",sortColAsc:"disable",sortColDsc:"disable"};if(null!=b&&(f=this.wp(a)===this.At(b),g=this.ic(a)===this.ic(b.parentNode),!1===g&&!1===f))return c;q=this.mA(a);d=this.ca.Gc("resizable");e=this.ca.Gc("sortable");null!==a&&("column"!=q&&"columnEnd"!=q||!f?g&&(this.xK()&&(c.cut="enable",c.paste="enable"),"true"===
a.getAttribute(d)&&(c.resize="enable",c.resizeHeight="enable"),c.resizeWidth=this.pa.wi(q,"width"),"true"===a.getAttribute(e)&&(c.sortRow="enable")):("true"===a.getAttribute(d)&&(c.resizeWidth="enable",c.resize="enable"),c.resizeHeight=this.pa.wi(q,"height"),"true"===a.getAttribute(e)&&(c.sortCol="enable",c.sortColAsc="enable",c.sortColDsc="enable",d=a.getAttribute(this.ca.Gc("sortDir")),"ascending"===d?c.sortColAsc="disable":"descending"===d&&(c.sortColDsc="disable"))));c.resize="enable"===c.resizeHeight||
"enable"===c.resizeWidth?"enable":"disable";return c};f.prototype.YM=function(a,b,c){var d;null!=this.N&&(d=this.dg());b===this.ca.Vg("resizeHeight")||b===this.ca.Vg("resizeWidth")?this.Pw()&&this.NIa(a,b,c,d):b===this.ca.Vg("sortColAsc")||b===this.ca.Vg("sortColDsc")?(b=b===this.ca.Vg("sortColAsc")?"ascending":"descending",this.q.Aa(d,this.o("cell"))&&(d=this.Jw(d,"column")),this.Vs(d)&&this.q9(a,b,d)):b===this.ca.Vg("sortRowAsc")||b===this.ca.Vg("sortRowDsc")?(b=b===this.ca.Vg("sortRowAsc")?"ascending":
"descending",this.q.Aa(d,this.o("cell"))&&(d=this.Jw(d,"row")),this.Vs(d)&&this.q9(a,b,d)):b===this.ca.Vg("cut")?this.yD(a,d):b===this.ca.Vg("paste")?this.AD(a,d):b===this.ca.Vg("discontiguousSelection")&&this.x_(c)};o_("DvtDataGrid.prototype.handleContextMenuReturn",f.prototype.YM,void 0);f.prototype.RD=function(a,b){var c,d;c=this.Ta.getCapability("sort");d=this.pa.SJa(a,b);return"enable"!==d&&"auto"!==d||"full"!==c&&c!==a?!1:!0};f.prototype.Vs=function(a){if(null==a)return!1;a=this.cl(a);return null==
a?!1:"true"==a.getAttribute(this.ca.Gc("sortable"))};f.prototype.yc=function(){return"none"!=this.pa.Rga()};f.prototype.Mn=function(){return"multiple"==this.pa.Rga()};f.prototype.Pw=function(){return this.pa.wi("row","width")||this.pa.wi("row","height")||this.pa.wi("column","width")||this.pa.wi("column","height")||this.pa.wi("rowEnd","width")||this.pa.wi("rowEnd","height")||this.pa.wi("columnEnd","width")||this.pa.wi("columnEnd","height")};f.prototype.Q$=function(a,b){var c;return"column"==a||"columnEnd"==
a?(c=this.pa.wi(a,"width",b),"enable"==c?!0:!1):"row"==a||"rowEnd"==a?(c=this.pa.wi(a,"height",b),"enable"==c?!0:!1):!1};f.prototype.jZ=function(a){this.Pw()&&!1==this.RF&&this.CF(a)};f.prototype.wha=function(a){this.Ce?this.bK(a):this.om||this.jZ(a)};f.prototype.lha=function(a){this.om||this.jZ(a)};f.prototype.$M=function(a){var b,c,d;this.Gs();d=a.target;if(this.JD()&&(b=this.dg(),!1==this.Vv(a,b,!1)))return;if(0===a.button){if((this.q.Aa(d,this.o("sortascending"))||this.q.Aa(d,this.o("sortdescending")))&&
this.Vs(d)){a.preventDefault();this.fya(d);return}this.Pw()&&(c=this.uha(a));b=this.iA(d);!this.om&&this.lz(b)&&(this.Ce=!0,this.Wg=a.pageX,this.Af=a.pageY,c=!0)}this.om||(this.ba.contains(document.activeElement)&&document.activeElement!==this.ba||(this.Hp=!0),this.YIa(a));!0===c&&a.preventDefault()};f.prototype.gJa=function(a){this.Ce?this.Fv(a,!1):this.Pw()&&this.vha(a);this.Ce=!1};f.prototype.bN=function(a){var b=a.target;this.q.nb(this.cl(b),this.o("hover"));this.Vs(b)&&this.iya(a)};f.prototype.aN=
function(a){var b=a.target;this.q.pb(this.cl(b),this.o("hover"));this.Vs(b)&&this.hya(a)};f.prototype.rha=function(a){this.Ce&&this.Fv(a,!0)};f.prototype.ZM=function(a){var b=a.target;(this.q.Aa(b,this.o("sortascending"))||this.q.Aa(b,this.o("sortdescending")))&&this.Vs(b)&&(this.B9(a),a.preventDefault())};f.prototype.QIa=function(a){var b,c,d;d=a.target;b=this.fk(d);if(null==b)this.c_=!0;else{if(this.JD())if(c=this.dg(),b!=c){if(!1==this.Vv(a,c,!1))return}else return;else this.Gs();0===a.button&&
this.lz(this.find(d,"row"))&&(this.Ce=!0,this.Wg=a.pageX,this.Af=a.pageY);this.ba.contains(document.activeElement)&&document.activeElement!==this.ba||(this.Hp=!0);this.ND()&&(this.cx=!this.O$(d));this.yc()?(this.eZ(a),this.Mn()&&0===a.button&&(this.RF=!0)):this.dZ(a)}};f.prototype.SIa=function(a){var b,c;this.Ce||(b=this.pa.ij(),c=a.target,a=this.iA(c),"cell"===b?this.q.pb(this.fk(c),this.o("hover")):"row"===b&&this.q.pb(a,this.o("hover")))};f.prototype.TIa=function(a){var b,c;this.Ce||(b=this.pa.ij(),
c=a.target,a=this.iA(c),"cell"===b?this.q.nb(this.fk(c),this.o("hover")):"row"===b&&this.q.nb(a,this.o("hover")))};f.prototype.OIa=function(a){var b,c;this.ND()&&(b=a.target,b=this.fk(b),c=this.rJ(),"edit"==c&&this.vU(a,b),this.uU(0,b),this.aK(a,b))};f.prototype.RIa=function(a){this.Ce?this.bK(a):this.RF&&this.oha(a)};f.prototype.UIa=function(a){this.RF=!1;this.Ce&&this.Fv(a,!0)};f.prototype.PIa=function(a){var b,c;this.Zta(a)&&(b=null!=this.N&&"header"==this.N.type?this.r7(a,this.N.axis):this.r7(a,
"cell"),c=this.dg(),null!=b&&b.call(this,a,c)&&a.preventDefault())};f.prototype.Zta=function(a){return this.fireEvent("keydown",{event:a,ui:{rowKey:this.jJ()}})};f.prototype.Rfa=function(a){var b,c;return a?(b=this.Rfa(a.offsetParent),c=this.YHa(a.offsetParent),[parseInt(b[0],10)+parseInt(a.offsetLeft,10)+c[0],parseInt(b[1],10)+parseInt(a.offsetTop,10)+c[1]]):[0,0]};f.prototype.YHa=function(a){var b,c;return a?(a=document.defaultView.getComputedStyle(a,null),a=a.getPropertyValue("-webkit-transform")||
a.getPropertyValue("-moz-transform")||a.getPropertyValue("-ms-transform")||a.getPropertyValue("-o-transform")||a.getPropertyValue("transform"),b=a.substr(7,a.length-8).split(", "),a=isNaN(parseInt(b[4],10))?0:parseInt(b[4],10),c=isNaN(parseInt(b[5],10))?0:parseInt(b[5],10),b=isNaN(parseInt(b[6],10))?0:parseInt(b[6],10),[a,c,b]):[0,0,0]};f.prototype.fZ=function(a){a.preventDefault();a=this.q.eIa(a);this.Ir(a.deltaX,a.deltaY)};f.prototype.tJa=function(a){var b,c;b=a.touches.length;c=a.touches[0].target;
if(1==b){this.ok=a.touches[0].pageX;this.pk=a.touches[0].pageY;this.Wg=this.ok;this.Af=this.pk;this.Zw=this.ok;this.xr=this.pk;this.UA=(new Date).getTime();this.Xt=!0;if(this.Mn()){if(c.className===this.o("selectaffordancetop")||c.className===this.o("selectaffordancebottom"))c=c.parentNode;if(a=c===this.Zg?"top":c===this.kj?"bottom":null)this.iG=!0,b=this.zg(),this.Iia="top"===a?b[b.length-1].endIndex:b[b.length-1].startIndex}!this.iG&&this.lz(this.find(c,"row"))&&(this.Ce=!0)}else this.AA(a)};f.prototype.sJa=
function(a){var b,c,d;d=a.target;this.Xt?(a.preventDefault(),this.Wg=a.touches[0].pageX,this.Af=a.touches[0].pageY,b=this.Wg-this.Zw,c=this.Af-this.xr,this.ca.gc()&&(b*=-1),this.iG?this.oha(a):this.Ce?(this.Ez(),this.bK(a)):this.JD()?(a=this.dg(),this.fk(d)!=a&&this.cK(b,c)):this.cK(b,c),this.Zw=this.Wg,this.xr=this.Af):this.AA(a)};f.prototype.rJa=function(a){var b,c;c=a.target;if(this.JD())if(b=this.dg(),this.fk(c)!=b)this.Vv(a,b,!1);else{this.AA(a);return}else this.Gs();null!=this.JN&&250>this.UA-
this.JN&&this.Bia===c?(this.Bia=this.JN=null,b=this.fk(c),null!=b&&(this.uU(0,b),this.aK(a,b),a.preventDefault())):(this.Bia=a.target,this.JN=(new Date).getTime());if(this.Xt&&!a.defaultPrevented)if(this.iG)a.preventDefault(),this.iG=!1;else{b=this.JN-this.UA;if(this.Wg==this.ok&&this.Af==this.pk){this.Ce=!1;this.yc()&&b<f.Wka?this.eZ(a):this.dZ(a);return}if(this.Ce){a.preventDefault();this.Ce=!1;this.Fv(a,!0);return}this.O9(a)}this.AA(a)};f.prototype.V4=function(a,b,c,d,e,g){var s;a-=b;c=Math.abs(a)/
c;a=c*c/(2*f.h0)*(0>a?-1:1);b=c/f.h0;g&&(a*=-1);d-a>e?(s=Math.max(-1*f.I0,a),a=d-e,b=(e-d)/c):0>d-a&&(s=Math.min(f.I0,a),a=d,b=d/c);return{wM:Math.round(a),duration:Math.min(Math.max(f.Cla,b),f.Ala),$A:s}};f.prototype.AA=function(a){this.Ce&&(this.Fv(a,!1),this.Ce=!1);this.Iia=null;this.Xt=this.iG=!1;this.UA=this.Af=this.Wg=this.xr=this.Zw=this.pk=this.ok=0};f.prototype.eN=function(a){var b,c,d;this.gKa=(new Date).getTime();c=a.touches.length;d=a.target;1==c?(this.ok=a.touches[0].pageX,this.pk=a.touches[0].pageY,
this.Wg=this.ok,this.Af=this.pk,this.Zw=this.ok,this.xr=this.pk,this.Xt=!0,b=this.cl(d),setTimeout(function(){this.Xt&&!this.om&&this.Wg==this.ok&&this.Af==this.pk&&(this.Ez(),this.Fc(b,a,!0))}.bind(this),f.x0),this.Pw()&&(this.CF(a),this.uha(a)),!this.om&&this.lz(this.iA(d))&&(this.Ce=!0)):this.zA(a)};f.prototype.dN=function(a){var b,c;this.Xt?(a.preventDefault(),this.Wg=a.touches[0].pageX,this.Af=a.touches[0].pageY,b=this.Wg-this.Zw,c=this.Af-this.xr,this.om&&this.Pw()?this.CF(a):this.Ce?(this.Ez(),
this.bK(a)):(a=a.target,a=this.cl(a),a=this.mA(a),"column"==a||"columnEnd"==a?this.cK(b,0):this.cK(0,c)),this.Zw=this.Wg,this.xr=this.Af):this.AA(a)};f.prototype.cN=function(a){var b,c=f.x0,d;b=(new Date).getTime()-this.gKa;this.Xt&&!a.defaultPrevented&&(d=a.target,this.om&&this.Pw()?(this.vha(a),this.Wg!=this.ok&&this.Af!=this.pk&&a.preventDefault()):this.Wg==this.ok&&this.Af==this.pk&&b<c?this.Vs(d)&&(a.preventDefault(),this.B9(a),this.Ez()):this.Ce?(a.preventDefault(),this.Ce=!1,this.Fv(a,!0)):
(b=this.cl(d),this.O9(a,this.mA(b))));this.zA(a)};f.prototype.zA=function(a){this.Ce&&(this.Fv(a,!1),this.Ce=!1);this.Xt=!1;this.Af=this.Wg=this.xr=this.Zw=this.pk=this.ok=0};f.prototype.cK=function(a,b){var c=(new Date).getTime();this.AS();this.Ir(a,b);c-this.UA>f.Zla&&(this.ok=this.Wg,this.pk=this.Af,this.UA=(new Date).getTime())};f.prototype.O9=function(a,b){var c,d,e,g,s;c=(new Date).getTime()-this.UA;d=this.ca.gc();e=this.Wg-this.ok;g=this.Af-this.pk;d&&(e*=-1);Math.abs(e)<f.J0&&Math.abs(g)<
f.J0&&c<f.Bla?(a.preventDefault(),this.yc()&&this.Nca()):c<f.zla&&(a.preventDefault(),"row"!=b&&"rowEnd"!=b?(d=this.V4(this.Wg,this.ok,c,this.rc,this.bx,d),!isNaN(d.$A)&&(0<d.$A||this.Qn)&&(this.UF=-1*d.$A)):(d={duration:0,wM:0},e=0),"column"!=b&&"columnEnd"!=b?(c=this.V4(this.Af,this.pk,c,this.Kb,this.$w),!isNaN(c.$A)&&(0<c.$A||this.qk)&&(this.DN=-1*c.$A)):(c={duration:0,wM:0},g=0),s=Math.max(d.duration,c.duration),this.ga.firstChild.style.webkitTransitionDuration=s+"ms",this.qa.firstChild.style.webkitTransitionDuration=
s+"ms",this.tb.firstChild.style.webkitTransitionDuration=s+"ms",this.La.firstChild.style.webkitTransitionDuration=s+"ms",this.Pb.firstChild.style.webkitTransitionDuration=s+"ms",this.Ir(e+d.wM,g+c.wM))};f.prototype.fireEvent=function(a,b){var c;if(null!=a&&null!=b)return c=this.callbacks[a],null!=c?c(b):!0};f.prototype.addListener=function(a,b){this.callbacks[a]=b};o_("DvtDataGrid.prototype.addListener",f.prototype.addListener,void 0);f.prototype.ad=function(a,b){a.style.height=b+"px"};f.prototype.xb=
function(a){return this.ta(a,"height")};f.prototype.ke=function(a,b){a.style.width=b+"px"};f.prototype.Wb=function(a){return this.ta(a,"width")};f.prototype.ma=function(a,b,c){a.style[c]=b+"px"};f.prototype.ta=function(a,b){var c;if(-1<a.style[b].indexOf("px")&&-1==a.style[b].indexOf("e"))return parseFloat(a.style[b]);document.body.contains(a)?c=Math.round(a["offset"+b.charAt(0).toUpperCase()+b.slice(1)]):(a.style.visibility="hidden",document.body.appendChild(a),c=Math.round(a["offset"+b.charAt(0).toUpperCase()+
b.slice(1)]),document.body.removeChild(a),a.style.visibility="");return c};f.FG=1;f.EO=2;f.Cu=3;f.prototype.wK=function(a){var b;b=a.row;a=a.column;return-1===b&&-1===a?-1:-1===b?a<this.Lb?f.FG:a>this.qd?f.EO:f.Cu:-1===a?b<this.Ea?f.FG:b>this.ob?f.EO:f.Cu:a>=this.Lb&&a<=this.qd&&b>=this.Ea&&b<=this.ob?f.Cu:-1};f.prototype.p_=function(a){return!this.zi||this.RA||this.HA||this.b_?(null==this.wr&&(this.wr=[]),this.wr.push(a),!0):!1};f.prototype.tha=function(b,c){var d,e,f,g,s,q,p,n;void 0===c&&this.p_(b)||
(d=b.operation,e=b.keys,p=b.source,q=b.indexes,f=b.result,g=b.header,s=b.endheader,n=b.silent,this.b_=!0,"insert"===d?(this.e4(d,q),this.j4(d,e,q),null!=f?this.Fxa(f,g,s):this.Exa(q,e)):"update"===d?this.Ixa(q):"delete"===d?(this.e4(d,q),this.j4(d,e,q),p&&a.Ab&&p instanceof a.Ab&&this.q.tO()?this.Bxa(e):this.Axa(q,e,n)):"refresh"===d||"reset"===d?this.Gxa():"sync"===d&&this.Hxa(b),this.b_=!1)};f.prototype.e4=function(a,b){var c,d,e,f,g=0;if(null!=this.N){if("cell"==this.N.type)f=!1,c=this.N.indexes.row;
else if("row"===this.N.axis)f=!0,c=this.N.index;else return;Array.isArray(b)||(b=Array(b));if(!0===this.aG){if("insert"===a){f?this.N.index=b[0].row:this.N.indexes.row=b[0].row;return}if("delete"===a&&b[0].row===c)return}g="insert"===a?1:-1;for(d=0;d<b.length;d++)e=b[d].row,e<c?f?this.N.index+=g:this.N.indexes.row+=g:e===c&&"delete"===a&&this.Fc(null)}};f.prototype.j4=function(a,b,c){var d,e,f,g,q,p,n,u,v,w,y;Array.isArray(b)||(b=Array(b));Array.isArray(c)||(c=Array(c));d=this.zg();if(null==b||null==
c||b.length!=c.length||0==d.length)this.aG&&"insert"==a&&(this.yc()&&this.Vj()&&(a="cell"==this.pa.ij()?this.createRange(this.N.indexes,this.N.indexes,b[0],b[0]):this.createRange(c[0],c[0],b[0],b[0]),this.$d=this.N.indexes,d.push(a)),this.aG=!1);else for(y="insert"===a?1:-1,e=0;e<b.length;e++)for(f=b[e].row,g=c[e].row,q=d.length;q--;)p=d[q],n=p.startKey.row,u=p.endKey.row,v=p.startIndex.row,w=p.endIndex.row,n==f?u==f&&"delete"==a?d.splice(q,1):(n=this.ic(this.ga.firstChild.childNodes[p.startIndex.row+
1-this.Ea]),p.startKey.row=n,p.endIndex.row+=y):u==f?(n=this.ic(this.ga.firstChild.childNodes[p.endIndex.row-1-this.Ea]),p.endKey.row=n,p.endIndex.row+=y):g<v?(p.startIndex.row+=y,p.endIndex.row+=y):g<w&&(p.endIndex.row+=y)};f.prototype.Exa=function(a,b){var c;c=this.wK(a);c===f.Cu||c===f.EO&&a.row==this.ob+1?null!=b.row&&(this.$m()?(this.empty(),this.refresh(this.ba)):(this.fetchHeaders("row",a.row,this.qa,this.La,1,{success:this.A9}),this.fetchCells(this.ga,a.row,this.Lb,1,this.qd-this.Lb+1,{success:this.p9}))):
(c===f.FG&&(this.Ea++,this.Zb++,this.ob++,this.Bb++,this.gd+=this.hc,this.kf+=this.hc,this.ed+=this.hc,this.ld+=this.hc,c=this.ga.firstChild.firstChild,null!=c&&this.gx(c,this.hc),c=this.qa.firstChild.firstChild,null!=c&&this.gx(c,this.hc),c=this.La.firstChild.firstChild,null!=c&&this.gx(c,this.hc)),this.qg(a))};f.prototype.p9=function(a,b){this.zi=!1;this.cZ(a,b,this.ob>=b[0].start);this.wW(b[0].start);this.Mf()||this.l5("top");this.BG();this.qk=!1;-1!=this.Bb&&(this.qj=!1);-1!=this.zb&&(this.pj=
!1);this.dr()};f.prototype.A9=function(a,b,c){this.eG=!0;this.fN(a,b,c,this.Bb>=b.start)};f.prototype.wW=function(a){var b,c;b=this.ga.firstChild.childNodes[a-this.Ea];null!=b&&(c=this.Kb,a=this.Cv(),b=b.offsetTop,c-=b,0<c?this.Ir(0,c):(c=a-b,0>c&&this.Ir(0,c)))};f.prototype.Fxa=function(a,b,c){var d,e,f,g,q,p,n,u,v,w,y;d=a.getStart("row");e=a.getCount("row");f=a.getStart("column");g=a.getCount("column");if(this.q.tO()){if(null!=b)for(q=document.createDocumentFragment(),p=b.getCount(),g=u=0,v=this.o("row")+
" "+this.o("headercell")+" "+this.o("rowheadercell"),w=this.pa.kr("row");0<p-g;)n=d+g,n=this.Cn(q,n,0,0,this.gd+u,!0,d!=this.Bb+1&&g!=e-1,w,b,"row",v,this.Ac),g+=n.count,u+=n.totalHeight;if(null!=c)for(y=document.createDocumentFragment(),b=c.getCount(),g=u=0,v=this.o("row")+" "+this.o("endheadercell")+" "+this.o("rowendheadercell"),w=this.pa.kr("rowEnd");0<b-g;)n=d+g,n=this.Cn(y,n,0,0,this.gd+u,!0,d!=this.zb+1&&g!=e-1,w,c,"rowEnd",v,this.Pd),g+=n.count,u+=n.totalHeight;c=document.createDocumentFragment();
n=this.dR(c,!0,this.gd,d,e,f,!1,a);this.fza(c,q,y,d,n.totalRowHeight)}else e={axis:"row",start:d,count:e},f={axis:"column",start:f,count:g},null!=b&&(d={axis:"row",header:this.qa,endHeader:this.La,start:d,count:b.getCount()},this.rd.row=d,this.A9(b,d,c)),this.p9(a,[e,f])};f.prototype.Ixa=function(a){this.wK(a)===f.Cu&&(-1!=this.Bb&&this.fetchHeaders("row",a.row,this.qa,this.La,1,{success:this.jxa,error:this.sha}),this.fetchCells(this.ga,a.row,this.Lb,1,this.qd-this.Lb+1,{success:this.pwa,error:this.XM}))};
f.prototype.jxa=function(a,b,c){this.rd[b.axis]=!1;b=b.start;this.mca(this.dfa.bind(this),a,this.qa,b-this.Zb);this.mca(this.cfa.bind(this),c,this.La,b-this.Bc);a=this.qa.firstChild.childNodes[b-this.Zb];null==this.N||"header"!==this.N.type||"row"!==this.N.axis&&"rowEnd"!==this.N.axis||this.ic(a)!==this.N.key||this.pn();this.rh()};f.prototype.mca=function(a,b,c,d){null!=b&&(a=a(c,b,d,1,!0,!0),c=c.firstChild,d=c.childNodes[d],c.replaceChild(a,d))};f.prototype.pwa=function(a,b){var c,d,e,f;this.rd.cells=
!1;c=b[0].start;d=this.ga.firstChild;e=this.pa.kr("cell");f=this.pa.JM();this.pa.XY();c-=this.Ea;this.CFa(a,d.childNodes[c],c,e,this.Lb,f);this.rh()};f.prototype.Zva=function(){return f.bma};f.prototype.CFa=function(a,b,c,d,e,f){var g,q,p,n;g=this.Zva();0!==g&&this.q.tO()?(q=this,q.dp(),n=function(){b.style.left="";q.lO(b);b.removeEventListener("transitionend",n,!1);q.yc()&&q.gM();q.pn();q.rh()},b.addEventListener("transitionend",n),p=this.Wb(this.ga),this.ma(b,p,"left"),this.q.empty(b),this.eM(a,
b,c,d,!0,e,!1,f),this.or(),this.ff(b,g+"ms",0,"linear",-1*p,0)):(this.q.empty(b),this.eM(a,b,c,d,!0,e,!1,f),this.yc()&&this.gM(),this.pn())};f.prototype.Axa=function(a,b,c){var d,e,g,s,q,p,n,u,v,w;Array.isArray(b)||(b=Array(b),a=Array(a));for(e=w=v=u=n=p=0;e<b.length;e++)d=b[e],q=a[e],null!=d.row&&(s=0,d=d.row,q=this.wK(q),q===f.FG?(v++,p+=this.hc,this.gd-=this.hc,this.ed-=this.hc,-1!=this.Bb&&(this.kf-=this.hc,this.ld-=this.hc),g=this.ga.firstChild.firstChild,null!=g&&this.fO(g,this.hc),g=this.qa.firstChild.firstChild,
null!=g&&this.fO(g,this.hc),d=this.La.firstChild.firstChild,null!=d&&this.fO(d,this.hc)):q===f.Cu?(w++,g=this.Nj(d),null!=g&&(s=this.mp(g),q=g.nextSibling,this.Kd(g),this.fO(q,s),this.ed-=s),g=this.Wd(d,this.qa,this.o("rowheadercell")),null!=g&&(s=this.lM(g),q=g.nextSibling,this.Kd(g),this.tja(q,s),this.ld-=s),d=this.Wd(d,this.La,this.o("rowendheadercell")),null!=d&&(s=this.lM(d),q=d.nextSibling,this.Kd(d),this.tja(q,s),this.Se-=s),n+=s):"scroll"===this.pa.Oga()&&(u+=this.hc));this.Ea-=v;this.ob=
this.ob-v-w;-1!=this.Bb&&(this.Zb-=v,this.Bb=this.Bb-v-w);-1!=this.zb&&(this.Bc-=v,this.zb=this.zb-v-w);b=p+n+u;a=this.ga.firstChild;b=this.xb(a)-b;this.ad(a,b);this.fB();c||!0==this.aG||(this.eG=!0,this.qk=!1,-1!=this.Bb&&(this.qj=!1),-1!=this.zb&&(this.pj=!1),this.dr());this.BG()};f.prototype.Bxa=function(a){this.sra(a)};f.prototype.sra=function(a){var b,c,d,e,g,s,q,p,n,u,v,w,y,x,z,C,E,B,K;b=this;b.dp();c=this.RA?1:f.Uka;v=[];x=0;B=-1==this.Bb?!1:!0;K=-1==this.zb?!1:!0;d=this.ga.firstChild;e=this.Nj(a[0].row).previousSibling;
this.ta(e,"top");for(u=e;u&&!(this.ta(u,"top")<this.Kb);)this.vh(u,this.xh("z-index"),10),u=u.previousSibling;if(B)for(w=[],g=this.Wd(a[0].row,this.qa,this.o("rowheadercell")).previousSibling,this.ta(g,"top"),u=g;u&&!(this.ta(u,"top")<this.Kb);)this.vh(u,this.xh("z-index"),10),u=u.previousSibling;if(K)for(y=[],s=this.Wd(a[0].row,this.La,this.o("rowendheadercell")).previousSibling,this.ta(s,"top"),u=s;u&&!(this.ta(u,"top")<this.Kb);)this.vh(u,this.xh("z-index"),10),u=u.previousSibling;for(p=0;p<a.length;p++)n=
a[p].row,u=this.Nj(n),null!=u&&(v.push(u),x+=this.xb(u),this.ma(u,this.ta(u,"top")-x,"top"),this.ff(u,0,0,"linear",0,x)),B&&(z=this.Wd(n,this.qa,this.o("rowheadercell")),null!=z&&(w.push(z),this.ma(z,this.ta(z,"top")-x,"top"),this.ff(z,0,0,"linear",0,x))),K&&(C=this.Wd(n,this.La,this.o("rowendheadercell")),null!=C&&(y.push(C),this.ma(C,this.ta(C,"top")-x,"top"),this.ff(C,0,0,"linear",0,x)));for(;u.nextSibling;)u=u.nextSibling,this.ma(u,this.ta(u,"top")-x,"top"),this.ff(u,0,0,"linear",0,x),B&&(z=z.nextSibling,
this.ma(z,this.ta(z,"top")-x,"top"),this.ff(z,0,0,"linear",0,x)),K&&(C=C.nextSibling,this.ma(C,this.ta(C,"top")-x,"top"),this.ff(C,0,0,"linear",0,x));q=d.lastChild;E=function(){var a;for(a=0;a<v.length;a++)b.Kd(v[a]),B&&b.Kd(w[a]),K&&b.Kd(y[a]);b.ad(d,b.ed-b.gd);b.fB();b.BG();b.dr();b.o9();q.removeEventListener("transitionend",E,!1)};q.addEventListener("transitionend",E,!1);this.ob-=v.length;this.ed-=x;this.qk=!1;B&&(this.Bb-=w.length,this.ld-=x,this.qj=!1);K&&(this.zb-=w.length,this.Se-=x,this.pj=
!1);this.HA=!0;u=e.nextSibling;B&&(z=g.nextSibling);K&&(C=s.nextSibling);setTimeout(function(){for(;u;)b.ff(u,c+"ms",0,"ease-out",0,0),u=u.nextSibling,B&&(b.ff(z,c+"ms",0,"ease-out",0,0),z=z.nextSibling),K&&(b.ff(C,c+"ms",0,"ease-out",0,0),C=C.nextSibling)},0)};f.prototype.o9=function(){var a,b,c,d;b=this.ga.firstChild;c=this.qa.firstChild;d=this.La.firstChild;for(a=0;a<b.childNodes.length;a++)this.lO(b.childNodes[a]),this.vh(b.childNodes[a],this.xh("z-index"),null,"remove"),-1!=this.Bb&&(this.lO(c.childNodes[a]),
this.vh(c.childNodes[a],this.xh("z-index"),null,"remove")),-1!=this.zb&&(this.lO(d.childNodes[a]),this.vh(d.childNodes[a],this.xh("z-index"),null,"remove"));this.HA=!1;this.rh();this.lL()};f.prototype.Nj=function(a){var b,c,d,e;if(null==this.ga||null==this.ga.firstChild)return null;b=this.ga.firstChild.childNodes;for(d=0;d<b.length;d++)if(c=b[d],e=this.ic(c),e==a)return c;return null};f.prototype.Wd=function(a,b,c){var d,e;if(null==b)return null;b=b.getElementsByClassName(c);for(d=0;d<b.length;d++)if(c=
b[d],e=this.ic(c),e==a)return c;return null};f.prototype.Gxa=function(){var a=this.yA();a===f.Ju?(this.empty(),null!=this.ba.offsetParent?this.refresh(this.ba):this.Xn(f.MB)):a===f.Nx&&(this.empty(),this.Xn(f.MB))};f.prototype.Hxa=function(a){a=a.pageSize;this.rd={};this.Ea=0;this.ob=-1;this.Zb=0;this.Bb=-1;this.Bc=0;this.zb=-1;this.Lb=this.Se=this.Ah=this.ld=this.kf=this.ed=this.gd=0;this.qd=-1;this.sd=0;this.Zd=-1;this.Bd=0;this.$c=-1;this.lk=this.mk=this.yi=this.nk=this.mj=this.sm=0;this.YF=this.ZF=
this.og=this.hc=this.je=this.Pd=this.Zc=this.Ac=void 0;this.um=this.vm=this.Qn=this.pj=this.qj=this.qk=!1;this.Uf=this.N=this.Vt=null;null!=this.nm&&(this.ba.removeChild(this.nm),this.nm=null);this.yL(this.qa);this.yL(this.tb);this.yL(this.La);this.yL(this.Pb);this.zi=!1;this.fetchHeaders("row",0,this.qa,this.La,a,{success:function(a,b,c){this.xha(a,b,c)}});this.fetchHeaders("column",0,this.tb,this.Pb,void 0,{success:function(a,b,c){this.mha(a,b,c)}});this.fetchCells(this.ga,0,0,a,null,{success:function(a,
b){this.iha(a,b)}});this.y_()};f.prototype.Pq=function(a,b,c){return this.Fc(this.nJ(a),b,c)};f.prototype.EX=function(a,b){var c,d;null==a?this.Fc(null,null,null,!0):null!=a.keys?d=this.qua(a.keys):null!=a.indexes?d=this.nJ(a.indexes):null!=a.axis&&(c=null==a.level?0:a.level,"column"==a.axis?null!=a.key?d=this.Wd(a.key,this.tb,this.o("colheadercell")):null!=a.index&&(d=this.eb(a.index,c,this.tb,this.Zc,this.sd)):"row"==a.axis?null!=a.key?d=this.Wd(a.key,this.qa,this.o("rowheadercell")):null!=a.index&&
(d=this.eb(a.index,c,this.qa,this.Ac,this.Zb)):"columnEnd"==a.axis?null!=a.key?d=this.Wd(a.key,this.Pb,this.o("colendheadercell")):null!=a.index&&(d=this.eb(a.index,c,this.Pb,this.je,this.Bd)):"rowEnd"==a.axis&&(null!=a.key?d=this.Wd(a.key,this.La,this.o("rowendheadercell")):null!=a.index&&(d=this.eb(a.index,c,this.La,this.Pd,this.Bc))));null!=d&&(b||(this.cx=!1),this.Fc(d,null,null,!0))};f.prototype.Fc=function(a,b,c,d){if(null!=a){var e=this.hS(a);if(this.vra(e,this.N)&&(d||this.e7(e,this.N,b)))return this.Uf=
this.N,this.N=e,this.cx&&this.Kca(e),c&&this.yc()&&this.Nk(b),this.zX(this.Uf),this.c$(this.N,this.Uf),this.jAa(),this.ND()&&this.HX(""),d||this.f7(e,b),!0}else if(!this.rm&&!this.Lp){if(d||this.e7(e,this.N,b))this.Uf=this.N,this.N=null,this.zX(this.Uf),d||this.f7(e,b);return!0}return!1};f.prototype.hS=function(a){var b=a[this.ca.Gc("context")];return this.q.Aa(a,this.o("headercell"))||this.q.Aa(a,this.o("endheadercell"))?{type:"header",axis:b.axis,index:this.wp(a),key:b.key,level:b.level}:{type:"cell",
indexes:{row:this.sA(a.parentNode),column:this.At(a)},keys:{row:b.keys.row,column:b.keys.column}}};f.prototype.dg=function(){return this.qT(this.N)};f.prototype.qT=function(a){if(null!=a)if("header"==a.type){if("row"===a.axis)return this.Wd(a.key,this.qa,this.o("rowheadercell"));if("column"===a.axis)return this.Wd(a.key,this.tb,this.o("colheadercell"));if("rowEnd"===a.axis)return this.Wd(a.key,this.La,this.o("rowendheadercell"));if("columnEnd"===a.axis)return this.Wd(a.key,this.Pb,this.o("colendheadercell"))}else if(a=
this.fm(this.createRange(a.indexes)),null!=a)return a[0];return null};f.prototype.vra=function(a,b){if(null!=a||null!=b){if(null==a&&null!=b||null!=a&&null==b||a.type!=b.type)return!0;if("header"==a.type){if(a.index!=b.index||a.key!=b.key||a.axis!=b.axis||a.level!=b.level)return!0}else if(a.indexes.row!=b.indexes.row||a.indexes.column!=b.indexes.column||a.keys.row!=b.keys.row||a.keys.column!=b.keys.column)return!0}return!1};f.prototype.e7=function(a,b,c){return this.fireEvent("beforeCurrentCell",
{event:c,ui:{currentCell:a,previousCurrentCell:b}})};f.prototype.f7=function(a,b){this.fireEvent("currentCell",{event:b,ui:a})};f.prototype.Vj=function(){return null!=this.N&&"cell"==this.N.type};f.prototype.yFa=function(a,b){var c,d,e,f,g;if("header"===a.type){c=a.axis;d=a.index;e=a.level;f={};if("row"===a.axis){if(1<this.Ac&&(null==b||e!==b.level||c!==b.axis)&&(f.level=e),null==b||d!==b.index||c!==b.axis)f.rowHeader=d}else if("column"===c){if(1<this.Zc&&(null==b||e!==b.level||c!==b.axis)&&(f.level=
e),null==b||d!==b.index||c!==b.axis)f.columnHeader=d}else if("rowEnd"===a.axis){if(1<this.Pd&&(null==b||e!==b.level||c!==b.axis)&&(f.level=e),null==b||d!==b.index||c!==b.axis)f.rowEndHeader=d}else"columnEnd"===c&&(1<this.je&&(null==b||e!==b.level||c!==b.axis)&&(f.level=e),null==b||d!==b.index||c!==b.axis)&&(f.columnEndHeader=d);this.FX(f,g)}else null==b||"cell"!=b.type||null==a||this.Hp||(a.indexes.row===b.indexes.row?g="row":a.indexes.column===b.indexes.column&&(g="column")),this.FX(a.indexes,g)};
f.prototype.dZ=function(a){var b;b=this.fk(a.target);null!=b&&this.Fc(b,a)};f.prototype.YIa=function(a){var b;b=this.cl(a.target);null!=b&&(this.yc()&&this.Nk(a),this.Fc(b,a))};f.prototype.Kca=function(a){"header"===a.type?this.lf(a):this.qg(a.indexes)};f.prototype.nJ=function(a){a=this.fm(this.createRange(a));return null!=a?a[0]:null};f.prototype.qua=function(a){var b=this.Nj(a.row);if(null!=b)for(var b=b.childNodes,c=0;c<b.length;c++)if(b[c][this.ca.Gc("context")].keys.column===a.column)return b[c];
return null};f.prototype.sA=function(a){for(var b=this.Ea;a.previousSibling;)b+=1,a=a.previousSibling;return b};f.prototype.At=function(a){for(var b=this.Lb;a.previousSibling;)b+=1,a=a.previousSibling;return b};f.prototype.wp=function(a){var b,c;switch(this.mA(a)){case "column":b=this.Zc;c=this.sd;break;case "row":b=this.Ac;c=this.Zb;break;case "columnEnd":b=this.je;c=this.Bd;break;case "rowEnd":b=this.Pd;c=this.Bc;break;default:return-1}if(1<b){b=this.ec(a.parentNode,"start");if(a===a.parentNode.firstChild)return b;
b--}else b=c;for(;a.previousSibling;)b+=1,a=a.previousSibling;return b};f.prototype.mA=function(a){return this.q.Aa(a,this.o("colheadercell"))?"column":this.q.Aa(a,this.o("rowheadercell"))?"row":this.q.Aa(a,this.o("rowendheadercell"))?"rowEnd":this.q.Aa(a,this.o("colendheadercell"))?"columnEnd":null};f.prototype.gk=function(a){var b;if(this.q.Aa(a,this.o("colheadercell"))){if(1===this.Zc)return 0}else if(this.q.Aa(a,this.o("rowheadercell"))){if(1===this.Ac)return 0}else if(this.q.Aa(a,this.o("colendheadercell"))){if(1===
this.je)return 0}else if(this.q.Aa(a,this.o("rowendheadercell"))&&1===this.Pd)return 0;b=this.ec(a.parentNode,"level");return a===a.parentNode.firstChild?b:b+this.nA(a.parentNode.firstChild)};f.prototype.nA=function(a){return this.ec(a,"depth")};f.prototype.fk=function(a){return this.find(a,"cell")};f.prototype.find=function(a,b,c){if(null==a||a==this.hk())return null;void 0==c&&(c=this.o(b));return null==c?null:this.q.Aa(a,c)?a:this.find(a.parentNode,b,c)};f.prototype.pn=function(){this.c$(this.N,
this.Uf,void 0)};f.prototype.uea=function(){this.zX(this.N,void 0)};f.prototype.c$=function(a,b,c){null==c&&this.q.cka()&&(c=["offsetOutline"]);if(null!=a){var d=this.qT(a);null!=d&&(this.jia(d),null!=c&&this.QU(d,c),this.Hz(a,b,d))}};f.prototype.zX=function(a,b){null==b&&this.q.cka()&&(b=["offsetOutline"]);if(null!=a){var c=this.qT(a);null!=c&&(this.kia(c),null!=b&&this.AX(c,b),this.Uz(c))}};f.prototype.QU=function(a,b){var c,d;for(d=0;d<b.length;d++)c=this.o(b[d]),this.q.nb(a,c)};f.prototype.AX=
function(a,b){var c,d;for(d=0;d<b.length;d++)c=this.o(b[d]),this.q.pb(a,c)};f.prototype.Hz=function(a,b,c){var d;d=this.bIa(a,b,c);this.yFa(a,b);c.setAttribute("tabIndex",0);c.setAttribute("aria-labelledby",d);null!=this.IA&&this.IA==c||!this.cx||c.focus();this.cx=!0};f.prototype.Uz=function(a){null!=a&&(a.setAttribute("tabIndex",-1),a.removeAttribute("aria-labelledby"))};f.prototype.bIa=function(a,b,c){var d,e,f,g;"header"==a.type?(null==b||"header"!=b.type||this.Hp||("row"===b.axis&&1<this.Ac?d=
this.eb(b.index,b.level,this.qa,this.Ac,this.Zb):"column"===b.axis&&1<this.Zc?d=this.eb(b.index,b.level,this.tb,this.Zc,this.sd):"rowEnd"===b.axis&&1<this.Pd?d=this.eb(b.index,b.level,this.La,this.Pd,this.Bc):"columnEnd"===b.axis&&1<this.je&&(d=this.eb(b.index,b.level,this.Pb,this.je,this.Bd))),a=[this.xe("context"),this.W7(c,d)].join(" "),e=c.getAttribute(this.ca.Gc("sortDir")),"ascending"===e?(f="accessibleSortAscending",a=a+" "+this.xe("state")):"descending"===e&&(f="accessibleSortDescending",
a=a+" "+this.xe("state")),!0===this.Hp&&(a=[this.xe("summary"),a].join(" "),this.Hp=!1),null!=f&&this.NFa(f),c.setAttribute("tabIndex",0)):(null!=b&&("header"===b.type?(g="row"===b.axis?b.index:null,e="column"===b.axis?b.index:null):(g=b.indexes.row,e=b.indexes.column)),f=this.AJ("row",this.qa,this.Ac,this.Zb,this.Bb,a.indexes.row,g,c),g=this.AJ("rowEnd",this.La,this.Pd,this.Bc,this.zb,a.indexes.row,g,c),b=this.AJ("column",this.tb,this.Zc,this.sd,this.Zd,a.indexes.column,e,c),a=this.AJ("columnEnd",
this.Pb,this.je,this.Bd,this.$c,a.indexes.column,e,c),a=[this.xe("context"),f,g,b,a,c.id,this.xe("state")].join(" "),a=a.replace(/ +(?= )/g,""),this.Hp&&(a=[this.xe("summary"),a].join(" "),this.Hp=!1));return a};f.prototype.Jw=function(a,b){var c;if("row"===b){if(null!=this.qa&&(c=a.parentNode,c=this.FM(c)+this.Ea,-1<c))return this.eb(c,this.Ac-1,this.qa,this.Ac,this.Zb)}else if("column"===b){if(null!=this.tb&&(c=this.FM(a)+this.Lb,-1<c))return this.eb(c,this.Zc-1,this.tb,this.Zc,this.sd)}else if("rowEnd"===
b){if(null!=this.La&&(c=a.parentNode,c=this.FM(c)+this.Ea,-1<c))return this.eb(c,this.Pd-1,this.La,this.Pd,this.Bc)}else if("columnEnd"===b&&null!=this.Pb&&(c=this.FM(a)+this.Lb,-1<c))return this.eb(c,this.je-1,this.Pb,this.je,this.Bd);return null};f.prototype.FM=function(a){var b,c,d,e;c=a.parentNode.childNodes;d=-1;for(e=0;e<c.length;e+=1){b=c[e];if(b===a)return d+1;"DIV"==b.nodeName&&d++}return d};f.prototype.createRange=function(a,b,c,d){var e,f,g,q,p,n,u;b&&(a.row<b.row||-1==b.row?(e=a.row,f=
b.row,c&&(q=c.row,p=d.row)):(e=b.row,f=a.row,c&&(q=d.row,p=c.row)),isNaN(a.column)||isNaN(b.column)?(a={row:e},b={row:f}):(a.column<b.column||-1==b.column?(g=a.column,b=b.column,c&&(n=c.column,u=d.column)):(g=b.column,b=a.column,c&&(n=d.column,u=c.column)),a={row:e,column:g},b={row:f,column:b}),c&&(c={row:q,column:n},d={row:p,column:u}));return c?{startIndex:a,endIndex:b,startKey:c,endKey:d}:{startIndex:a,endIndex:b}};f.prototype.lS=function(a,b,c){this.laa(a,this.ssa.bind(this,b,c))};f.prototype.ssa=
function(a,b,c,d){a===d?this.W5(c,d,b,c,d):a?this.laa(a,this.W5.bind(this,c,d,b)):b.call(this,{startIndex:d,endIndex:d,startKey:c,endKey:c})};f.prototype.W5=function(a,b,c,d,e){c.call(this,this.createRange(b,e,a,d))};f.prototype.NY=function(a){return null==a.endIndex?a.startIndex:a.endIndex};f.prototype.fm=function(a,b,c){var d,e,f,g,q,p;void 0==b&&(b=this.Ea);void 0==c&&(c=this.ob+1);d=a.startIndex;e=this.NY(a);f=d.row;a=e.row;-1==a&&(a=Number.MAX_VALUE);if(c<f||a<b||!isNaN(d.column)&&!isNaN(e.column)&&
(g=d.column,q=e.column,-1==q&&(q=Number.MAX_VALUE),this.qd+1<g||q<this.Lb))return null;b=[];c=this.ga.firstChild;if(null==c)return null;c=c.childNodes;f=Math.max(0,f-this.Ea);a=Math.min(c.length,a-this.Ea+1);if(isNaN(g)||isNaN(q))for(;f<a;f+=1)g=c[f],b.push(g);else for(g=Math.max(0,g-this.Lb),q=q-this.Lb+1;f<a;f+=1)for(d=c[f].childNodes,e=g;e<Math.min(d.length,q);e+=1)p=d[e],b.push(p);return b};f.prototype.IKa=function(){var a,b,c,d;if(null==this.N)return!1;if("header"==this.N.type)a={},"row"===this.N.axis?
(1<this.Ac&&(a.level=this.N.level),a.rowHeader=this.N.index):(1<this.Zc&&(a.level=this.N.level),a.columnHeader=this.N.index),a=this.dg();else{a=this.N.indexes;this.yc()&&this.Mn()&&null!=this.$d&&(a=this.$d);if(null==a)return!1;a=this.createRange(a);a=this.fm(a);if(null==a||0==a.length)return!1;a=a[0]}this.Hz(this.hS(a),null,a);b=this.xe("placeHolder");c=!0;d=a.getAttribute("aria-labelledby");null!=d&&-1!=d.indexOf(b)&&(c=!1);c?(this.ON.textContent="\x26nbsp",d=a.getAttribute("aria-labelledby"),a.setAttribute("aria-labelledby",
d+" "+b)):this.q.empty(this.ON);a.focus();return!0};f.prototype.ZI=function(a){this.YI(a);this.sL(a)&&(this.kia(a),this.Qja(!0));return!1};f.prototype.Gs=function(){var a;this.kN()&&(a=this.dg(),this.Qja(!1),this.OI(a),this.jia(a))};f.prototype.dW=function(a,b,c){var d,e;d=this.pa.kr("cell");e=a[this.ca.Gc("context")];e.mode=b;this.q.empty(a.firstChild);this.q.Aa(a,c)?this.q.pb(a,c):this.q.nb(a,c);this.oW(d,e,a.firstChild,e.data,this.o("celltext"))};f.prototype.createIndex=function(a,b){return null!=
a?null!=b?{row:a,column:b}:{row:a}:null};f.prototype.ZIa=function(a,b,c){var d,e,g,s,q,p,n,u,v,w;if(!this.Ln())return!0;this.ca.gc()&&(a==f.yb.Bg?a=f.yb.kh:a==f.yb.kh&&(a=f.yb.Bg));d=this.N.axis;e=this.N.index;g=this.N.level;s=this.dg();q=null!=s?this.ec(s,"depth"):1;"column"==d?(p=this.tb,n=this.sd,u=this.Zd,v=this.Zc,w=this.vm):"row"==d&&(p=this.qa,n=this.Zb,u=this.Bb,v=this.Ac,w=this.qj);"columnEnd"==d&&(a==f.yb.sl?a=f.yb.Bl:a==f.yb.Bl&&(a=f.yb.sl),p=this.Pb,n=this.Bd,u=this.$c,v=this.je,w=this.um);
"rowEnd"==d&&(a==f.yb.Bg?a=f.yb.kh:a==f.yb.kh&&(a=f.yb.Bg),p=this.La,n=this.Bc,u=this.zb,v=this.Pd,w=this.pj);switch(a){case f.yb.Bg:if(("column"===d||"columnEnd"===d)&&0<e){if(1===v)e-=1,s=null!=s?s.previousSibling:null;else if(s=this.eb(e-1,g,p,v,n),e=null!=s?this.ec(s.parentNode,"start"):e-1,g=null!=s?this.gk(s):g,0>e)break;this.lf({axis:d,index:e,level:g});this.Fc(s,b)}else("row"===d||"rowEnd"===d)&&0<g&&(s=this.eb(e,g-1,p,v,n),e=this.ec(s.parentNode,"start"),g=this.gk(s),this.lf({axis:d,index:e,
level:g}),this.Fc(s,b));break;case f.yb.kh:"rowEnd"==d&&c&&-1!=this.Bb?(s=this.eb(e,this.Ac,this.qa,this.Ac,this.Zb),this.lf({axis:"row",index:e,level:0}),this.Fc(s,b)):"row"==d&&c&&-1!=this.zb?(s=this.eb(e,this.Pd,this.La,this.Pd,this.Bc),this.lf({axis:"rowEnd",index:e,level:0}),this.Fc(s,b)):"row"===d||"rowEnd"===d?g+q>=v?(d="row"==d?this.createIndex(e,0):this.Mf()?this.createIndex(e,this.qd):this.createIndex(e,this.Ta.getCount("column")-1),this.qg(d),this.yc()?this.Jr(d,b):this.Pq(d,b)):(s=this.eb(e,
g+q,p,v,n),e=this.ec(s.parentNode,"start"),g=this.gk(s),this.lf({axis:d,index:e,level:g}),this.Fc(s,b)):(1===v?(e+=1,s=null!=s?s.nextSibling:null):(e=g===v-1?e+1:null!=s?this.ec(s.parentNode,"start")+this.ec(s.parentNode,"extent"):e+1,s=this.eb(e,g,p,v,n),g=null!=s?this.gk(s):g),e>u&&w||!(this.Lf("column")||e<this.Ta.getCount("column"))||(this.lf({axis:d,index:e,level:g}),this.Fc(s,b)));break;case f.yb.Bl:if(("row"===d||"rowEnd"===d)&&0<e){if(1===v)e-=1,s=null!=s?s.previousSibling:null;else if(g===
v-1?(e-=1,s=this.eb(e,g,p,v,n)):(s=this.eb(this.ec(s.parentNode,"start")-1,g,p,v,n),e=null!=s?this.ec(s.parentNode,"start"):e-1),g=null!=s?this.gk(s):g,0>e)break;this.lf({axis:d,index:e,level:g});this.Fc(s,b)}else("column"===d||"columnEnd"===d)&&0<g&&(s=this.eb(e,g-1,p,v,n),e=this.ec(s.parentNode,"start"),g=this.gk(s),this.lf({axis:d,index:e,level:g}),this.Fc(s,b));break;case f.yb.sl:"columnEnd"==d&&c&&-1!=this.Zd?(s=this.eb(e,this.Zc,this.tb,this.Zc,this.sd),this.lf({axis:"column",index:e,level:0}),
this.Fc(s,b)):"column"==d&&c&&-1!=this.$c?(s=this.eb(e,this.je,this.Pb,this.je,this.Bd),this.lf({axis:"columnEnd",index:e,level:0}),this.Fc(s,b)):"column"===d||"columnEnd"===d?g+q>=v?(d="column"==d?this.createIndex(0,e):this.Mf()?this.createIndex(this.ob,e):this.createIndex(this.Ta.getCount("row")-1,e),this.qg(d),this.yc()?this.Jr(d,b):this.Pq(d,b)):(s=this.eb(e,g+q,p,v,n),e=this.ec(s.parentNode,"start"),g=this.gk(s),this.lf({axis:d,index:e,level:g}),this.Fc(s,b)):(1===v?(e+=1,s=null!=s?s.nextSibling:
null):(e=g===v-1?e+1:null!=s?this.ec(s.parentNode,"start")+this.ec(s.parentNode,"extent"):e+1,s=this.eb(e,g,p,v,n),g=null!=s?this.gk(s):g),e>u&&w||!(this.Lf("row")||e<this.Ta.getCount("row"))||(this.lf({axis:d,index:e,level:g}),this.Fc(s,b)));break;case f.yb.XG:if("row"===d||"rowEnd"===d)s=this.eb(0,g,p,v,n),this.lf({axis:d,index:0,level:g}),this.Fc(s,b);break;case f.yb.WG:if("row"===d||"rowEnd"===d)e=this.Lf("row")||this.Mf()?Math.max(0,u):Math.max(0,this.Ta.getCount("row")-1),s=this.eb(e,g,p,v,
n),this.lf({axis:d,index:e,level:g}),this.Fc(s,b);break;case f.yb.OG:if("column"===d||"columnEnd"===d)s=this.eb(0,g,p,v,n),this.lf({axis:d,index:0,level:g}),this.Fc(s,b);break;case f.yb.KG:if("column"===d||"columnEnd"===d)e=this.Lf("column")||this.Mf()?Math.max(0,u):Math.max(0,this.Ta.getCount("column")-1),s=this.eb(e,g,p,v,n),this.lf({axis:d,index:e,level:g}),this.Fc(s,b)}return!0};f.prototype.AJ=function(a,b,c,d,e,f,g,q){var p;return-1==e||f==g&&!this.Hp?"":(a=this.Jw(q,a),null!=g&&(p=this.eb(g,
c-1,b,c,d)),this.W7(a,p))};f.prototype.W7=function(a,b){var c,d,e="",f=[];if(null==a)return"";d=this.X7(a);null!=b&&(f=this.X7(b));for(c=0;c<d.length;c++)if(f[c]!=d[c]||c===d.length-1)e+=(""==e?"":" ")+d[c].id;return e};f.prototype.X7=function(a){var b,c,d,e=[a];b=this.mA(a);c=this.gk(a);"row"===b?d=this.Ac:"column"===b?d=this.Zc:"rowEnd"===b?d=this.Pd:"columnEnd"===b&&(d=this.je);if(1===d)return e;c===d-1&&(a=a.parentNode.firstChild,e.unshift(a),c-=1);for(;0<c;)a=a.parentNode.parentNode.firstChild,
e.unshift(a),c-=1;return e};f.prototype.XIa=function(a,b,c,d,e){var g,s,q,p;if(!this.Ln())return!0;g=b?this.$d:this.N.indexes;if(null!=g){this.ca.gc()&&(a==f.yb.Bg?a=f.yb.kh:a==f.yb.kh&&(a=f.yb.Bg));p=this.yc()?this.Jr.bind(this):this.Pq.bind(this);s=g.row;q=g.column;switch(a){case f.yb.Bg:0<q&&(!e||-1==this.Bb)?"row"==this.pa.ij()?(a=this.createIndex(this.N.indexes.row,q-1),this.qg(a,b),this.Pq(a,c)):(a=this.createIndex(s,q-1),this.qg(a,b),b?this.hA(a,c):p(a,c),0===q-1&&this.Qg("accessibleFirstColumn")):
!b&&d&&(this.lf({axis:"row",index:s,level:this.Ac-1}),this.Fc(this.eb(s,this.Ac-1,this.qa,this.Ac,this.Zb),c,!0));break;case f.yb.kh:this.Mv(q)||e&&-1!=this.zb?-1!=this.zb&&d?(this.lf({axis:"rowEnd",index:s,level:this.Pd-1}),this.Fc(this.eb(s,this.Pd-1,this.La,this.Pd,this.Bc),c,!0)):b||(p(g,c),this.qg(g)):"row"==this.pa.ij()?(a=this.createIndex(this.N.indexes.row,q+1),this.qg(a,b),this.Pq(a,c)):(a=this.createIndex(s,q+1),this.qg(a,b),b?this.hA(a,c):p(a,c),this.Mv(q+1)&&this.Qg("accessibleLastColumn"));
break;case f.yb.Bl:0<s&&(!e||-1==this.Zd)?(a=this.createIndex(s-1,q),this.qg(a,b),b?this.hA(a,c):p(a,c),0===s-1&&this.Qg("accessibleFirstRow")):!b&&d&&(this.lf({axis:"column",index:q,level:this.Zc-1}),this.Fc(this.eb(q,this.Zc-1,this.tb,this.Zc,this.sd),c,!0));break;case f.yb.sl:this.Nv(s)||e&&-1!=this.$c?-1!=this.$c&&d?(this.lf({axis:"columnEnd",index:q,level:this.je-1}),this.Fc(this.eb(q,this.je-1,this.Pb,this.je,this.Bd),c,!0)):b||(p(g,c),this.qg(g)):(a=this.createIndex(s+1,q),this.qg(a,b),b?this.hA(a,
c):p(a,c),this.Nv(s+1)&&this.Qg("accessibleLastRow"));break;case f.yb.OG:a=this.createIndex(s,0);this.qg(a);p(a,c);break;case f.yb.KG:a=this.Lf("column")||this.Mf()?this.createIndex(s,Math.max(0,this.qd)):this.createIndex(s,Math.max(0,this.Ta.getCount("column")-1));this.qg(a);p(a,c);break;case f.yb.XG:a=this.createIndex(0,q);this.qg(a);p(a,c);break;case f.yb.WG:a=this.Lf("column")||this.Mf()?this.createIndex(Math.max(0,this.ob),q):this.createIndex(Math.max(0,this.Ta.getCount("row")-1),q),this.qg(a),
p(a,c)}return!0}};f.prototype.qg=function(a,b){var c,d,e,f,g,q,p,n,u,v,w,y,x;c=a.row;d=a.column;u=this.ca.gc()?"right":"left";f=e=0;p=this.Kb;n=this.Cv();w=this.rc;y=this.xD();c<this.Ea||c>this.ob?(f=c<this.Ea?this.hc*c:this.hc*(c+1)-n+p,f=this.Kb-f,this.rm=a,x=!0):(g=this.ga.firstChild,q=g.childNodes[c-this.Ea],g=this.ta(q,"top"),q=this.mp(q),g+q>n?f=n-(g+q):g<p&&(f=p-g));isNaN(d)||!0==x||(d<this.Lb||d>this.qd?(e=d<this.Lb?this.og*d:this.og*(d+1)-y+w,e=this.rc-e,this.rm=a):(g=this.ga.firstChild,
q=g.childNodes[c-this.Ea],v=q.childNodes[d-this.Lb],c=this.ta(v,u),d=this.Wb(v),c<w?e=w-c:c+d>y&&(e=y-(c+d))));0!=e||0!=f?(null!=v&&!0!==b&&(this.IA=v),this.Ir(e,f)):null!=this.rm&&this.Pq(this.rm)&&(this.rm=null)};f.prototype.lf=function(a){var b,c,d,e,f,g,q,p,n,u,v,w,y,x;w=a.axis;y=a.index;x=a.level;b=0;"row"===w?(c=this.Zb,d=this.Bb,e=this.hc,n=f=this.Kb,u=this.Cv()):"column"===w?(c=this.sd,d=this.Zd,e=this.og,n=f=this.rc,u=this.xD()):"rowEnd"===w?(c=this.Bc,d=this.zb,e=this.hc,n=f=this.Kb,u=this.Cv()):
"columnEnd"===w&&(c=this.Bd,d=this.$c,e=this.og,n=f=this.rc,u=this.xD());v=u-n;if(y<c||y>d)b=f-(y<c?e*y:e*(y+1)-v),this.Lp=a;else{if("row"===w||"rowEnd"===w)p="row"===w?this.eb(y,x,this.qa,this.Ac,this.Zb):this.eb(y,x,this.La,this.Pd,this.Bc),g=this.ta(p,"top"),q=this.xb(p);else if("column"===w||"columnEnd"===w)p="column"===w?this.eb(y,x,this.tb,this.Zc,this.sd):this.eb(y,x,this.Pb,this.je,this.Bd),g=this.ta(p,this.ca.gc()?"right":"left"),q=this.Wb(p);v>q?g+q>u?b=u-(g+q):g<n&&(b=n-g):b=n-g}0!=b?(null!=
p&&(this.IA=p),"row"===w||"rowEnd"===w?this.Ir(0,b):this.Ir(b,0)):null!=this.Lp&&(this.EX(a,!0),this.Lp=null)};f.prototype.cl=function(a,b,c){null==b&&(b=this.o("headercell"));null==c&&(c=this.o("endheadercell"));if(null!=b){if(this.q.Aa(a,b)||this.q.Aa(a,c))return a;if(a.parentNode)return this.cl(a.parentNode,b,c)}return null};f.prototype.BG=function(){var a,b,c,d,e;a=this.pa.XY();if(0<a)for(b=this.ga.firstChild.childNodes,e=this.o("banded"),c=0;c<b.length;c++)d=this.Ea+c,1===Math.floor(d/a)%2?this.q.Aa(b[c],
e)||this.q.nb(b[c],e):this.q.Aa(b[c],e)&&this.q.pb(b[c],e)};f.prototype.cMa=function(){var a,b,c,d,e,f,g;a=this.pa.JM();if(0<a)for(b=this.ga.firstChild.childNodes,e=this.o("banded"),c=0;c<b.length;c+=1)for(g=b[c].childNodes,f=0;f<g.length;f+=1)d=this.Lb+f,1===Math.floor(d/a)%2?this.q.Aa(g[f],e)||this.q.nb(g[f],e):this.q.Aa(g[f],e)&&this.q.pb(b[f],e)};f.prototype.kCa=function(){var a,b,c,d,e;a=this.ga.firstChild.childNodes;e=this.o("banded");for(c=0;c<a.length;c++)for(this.q.Aa(a[c],e)&&this.q.pb(a[c],
e),b=a[c].childNodes,d=0;d<b.length;d+=1)this.q.Aa(b[d],e)&&this.q.pb(b[d],e)};f.prototype.Qg=function(a,b){var c=this.ca.yh(a,b);null!=c&&(this.FA.textContent=c)};f.prototype.qha=function(a,b){var c;void 0===b&&this.p_(a)?a.operation="expand":(c=a.rowKey,c=this.Nj(c),c.setAttribute("aria-expanded",!0),this.Qg("accessibleRowExpanded"),this.k_())};f.prototype.kha=function(a,b){var c;void 0===b&&this.p_(a)?a.operation="collapse":(c=a.rowKey,c=this.Nj(c),c.setAttribute("aria-expanded",!1),this.Qg("accessibleRowCollapsed"),
this.k_())};f.prototype.JE=function(a,b){null!=a&&(a[this.ca.Gc("key")]=b)};f.prototype.ic=function(a){return null!=a?a[this.ca.Gc("key")]:null};f.prototype.jJ=function(a){if(a&&null!=this.Uf){if("header"==this.Uf.type&&("row"===this.Uf.axis||"rowEnd"===this.Uf.axis))return this.Uf.key;if("cell"==this.Uf.type)return this.Uf.keys.row}else if(null!=this.N){if("header"==this.N.type&&("row"===this.N.axis||"rowEnd"===this.N.axis))return this.N.key;if("cell"==this.N.type)return this.N.keys.row}return null};
f.prototype.yD=function(a,b){var c;null==b&&(b=a.target);return this.lz(this.iA(b))?(null!=this.lm&&this.q.pb(this.lm,this.o("cut")),c=this.ic(this.find(b,"row")),this.lm=this.Nj(c),this.Ot=this.Wd(c,this.qa,this.o("rowheadercell")),this.JA=this.Wd(c,this.La,this.o("rowendheadercell")),this.q.nb(this.lm,this.o("cut")),null!==this.Ot&&this.q.nb(this.Ot,this.o("cut")),!0):!1};f.prototype.AD=function(a,b){var c;null==b&&(b=a.target);return null!=this.lm?(this.q.pb(this.lm,this.o("cut")),null!==this.Ot&&
(this.q.pb(this.Ot,this.o("cut")),this.Ot=null),null!==this.JA&&(this.q.pb(this.JA,this.o("cut")),this.JA=null),c=this.find(b,"row"),this.lm!==c&&(this.yc()&&this.Nk(a),this.Vj()&&this.uea(),this.aG=!0,this.Ta.move(this.ic(this.lm),this.ic(c))),this.lm=null,!0):!1};f.prototype.nwa=function(){if(null!=this.lm)return this.q.pb(this.lm,this.o("cut")),this.lm=null,null!==this.Ot&&(this.q.pb(this.Ot,this.o("cut")),this.Ot=null),null!==this.JA&&(this.q.pb(this.JA,this.o("cut")),this.JA=null),!0};f.prototype.bK=
function(a){var b;null==this.jc&&(b=a.target,b=this.ic(this.find(b,"row")),this.jc=this.Nj(b),this.Ai=this.Wd(b,this.qa,this.o("rowheadercell")),this.nj=this.Wd(b,this.La,this.o("rowendheadercell")),null!=this.jc.style.height&&this.ad(this.jc,this.mp(this.jc)),this.q.nb(this.jc,this.o("drag")),this.cG=this.ta(this.jc,"top"),this.lj=document.createElement("div"),this.q.nb(this.lj,this.o("drop")),this.ad(this.lj,this.mp(this.jc)),this.ma(this.lj,this.cG,"top"),this.ga.firstChild.appendChild(this.lj),
this.V3(this.Ai,this.qa,!1),this.V3(this.nj,this.La,!0));this.q.Od()||(this.xr=this.Af,this.Af=a.pageY);a=this.Af-this.xr;b=this.mp(this.jc);this.ma(this.jc,this.ta(this.jc,"top")+a,"top");null!==this.Ai&&this.ma(this.Ai,this.ta(this.Ai,"top")+a,"top");null!==this.nj&&this.ma(this.nj,this.ta(this.nj,"top")+a,"top");null!=this.jc.nextSibling&&this.jc.nextSibling!=this.lj&&this.ta(this.jc.nextSibling,"top")<this.ta(this.jc,"top")+b/2?this.Jaa("nextSibling"):null!=this.jc.previousSibling&&this.ta(this.jc.previousSibling,
"top")>this.ta(this.jc,"top")-b/2&&this.Jaa("previousSibling")};f.prototype.V3=function(a,b,c){var d;null!==a&&(null==a.style.height&&this.ad(a,this.mp(a)),this.q.nb(a,this.o("drag")),d=document.createElement("div"),this.q.nb(d,this.o("drop")),this.ad(d,this.mp(a)),this.ma(d,this.cG,"top"),b.firstChild.appendChild(d),c?this.iia=d:this.PZ=d)};f.prototype.Jaa=function(a){var b,c,d,e,f;c=this.jc.parentNode;"nextSibling"==a?(b=this.cG+this.mp(this.jc[a]),d=this.cG):(b=this.ta(this.jc[a],"top"),d=b+this.mp(this.jc));
this.ma(this.lj,b,"top");this.ma(this.jc[a],d,"top");null!==this.Ai&&(e=this.Ai.parentNode,this.ma(this.PZ,b,"top"),this.ma(this.Ai[a],d,"top"));null!==this.nj&&(f=this.nj.parentNode,this.ma(this.iia,b,"top"),this.ma(this.nj[a],d,"top"));this.cG=b;this.q.pb(this.jc.previousSibling,this.o("activedrop"));"nextSibling"===a?(c.insertBefore(this.jc,this.jc[a][a]),null!==this.Ai&&e.insertBefore(this.Ai,this.Ai[a][a]),null!==this.nj&&f.insertBefore(this.nj,this.nj[a][a])):(c.insertBefore(this.jc,this.jc[a]),
null!==this.Ai&&e.insertBefore(this.Ai,this.Ai[a]),null!==this.nj&&f.insertBefore(this.nj,this.nj[a]));this.q.nb(this.jc.previousSibling,this.o("activedrop"))};f.prototype.xK=function(){var a;a=this.Ta.getCapability("move");return"enable"!==this.pa.RJa()||"full"!==a&&"row"!==a?!1:!0};f.prototype.Fv=function(a,b){null!=this.jc&&(this.Kd(this.lj),this.jc.style.zIndex="",null!==this.Ai&&(this.Kd(this.PZ),this.Ai.style.zIndex=""),null!==this.nj&&(this.Kd(this.iia),this.nj.style.zIndex=""),null!=this.N&&
"column"!=this.N.axis&&(this.aG=!0),this.yc()&&this.Nk(a),!0==b?this.Ta.move(this.ic(this.jc),null===this.jc.nextSibling?null:this.ic(this.jc.nextSibling)):this.Ta.move(this.ic(this.jc),this.ic(this.jc)),this.jc=null);this.Ce=!1};f.prototype.lz=function(a){return null==a||this.q.Aa(a.parentNode,this.o("colheader"))?!1:this.xK()&&this.jJ()===this.ic(a)?!0:!1};f.prototype.jAa=function(){var a,b,c,d,e,f,g;a=this.o("draggable");b=this.jJ();c=this.jJ(!0);d=this.Nj(b);e=this.Nj(c);f=this.o("rowheadercell");
g=this.o("rowendheadercell");this.q.Aa(e,a)&&(this.q.pb(e,a),e=this.Wd(c,this.qa,f),this.q.Aa(e,a)&&this.q.pb(e,a),e=this.Wd(c,this.La,g),this.q.Aa(e,a)&&this.q.pb(e,a));this.lz(d)&&(c=this.Wd(b,this.qa,f),b=this.Wd(b,this.La,g),this.q.nb(d,a),this.q.nb(c,a),this.q.nb(b,a))};f.prototype.jJa=function(a){var b,c;this.q.nb(this.ba,this.o("focus"));if(!this.ba.contains(document.activeElement)||document.activeElement===this.ba&&0==this.ba.tabIndex||document.activeElement===this.ga&&this.c_&&0==this.ba.tabIndex)this.Hp=
!0,this.cV()?this.Qg("accessibleEditableMode"):this.ND()&&this.Qg("accessibleNavigationMode"),null!=this.N||this.$m()?null!=this.N&&this.pn():(b=this.createIndex(0,0),!0==this.c_?this.c_=this.cx=!1:this.qg(b),c=this.zg(),!this.yc()||null!=c&&0!=c.length?this.Pq(b):this.Jr(b,a));this.ba.tabIndex=-1};f.prototype.iJa=function(){var a;setTimeout(function(){this.ba.contains(document.activeElement)||(this.ba.tabIndex=0,a=this.dg(),null!=a&&this.Uz(a))}.bind(this),100);null==this.jc&&this.q.pb(this.ba,this.o("focus"))};
f.prototype.mp=function(a){return""!=a.style.height?this.xb(a):null!=a.nextSibling?this.ta(a.nextSibling,"top")-this.ta(a,"top"):this.ed-this.ta(a,"top")};f.prototype.lM=function(a){return""!=a.style.height?this.xb(a):null!=a.nextSibling?this.ta(a.nextSibling,"top")-this.ta(a,"top"):this.ld-this.ta(a,"top")};f.prototype.bY=function(a){if(""!=a.style.width)return this.Wb(a);var b=this.ca.gc()?"right":"left";return null!=a.nextSibling?this.ta(a.nextSibling,b)-this.ta(a,b):this.mj-this.ta(a,b)};f.prototype.ffa=
function(a){if(""!=a.style.width)return this.Wb(a);var b=this.ca.gc()?"right":"left";return null!=a.nextSibling?this.ta(a.nextSibling,b)-this.ta(a,b):this.yi-this.ta(a,b)};f.prototype.$m=function(){return null==this.ga.firstChild||null==this.ga.firstChild.firstChild?!0:!1};f.prototype.vh=function(a,b,c,d){"undefined"!=typeof b&&(a.style[b]="remove"==d?"":c)};f.prototype.ff=function(a,b,c,d,e,f){this.vh(a,this.xh("transition-delay"),c);this.vh(a,this.xh("transition-timing-function"),d);this.vh(a,this.xh("transition-duration"),
b);this.vh(a,this.xh("transform"),"translate3d("+e+"px,"+f+"px,0px)")};f.prototype.lO=function(a){this.vh(a,this.xh("transition-delay"),null,"remove");this.vh(a,this.xh("transition-timing-function"),null,"remove");this.vh(a,this.xh("transition-duration"),null,"remove");this.vh(a,this.xh("transform"),null,"remove")};f.prototype.xh=function(a){function b(a){return a.replace(/\-([a-z])/gi,function(a,b){return b.toUpperCase()})}var c,d,e,f;c=" -moz- -webkit- -o- -ms- -khtml-".split(" ");d=document.documentElement;
for(e=0;e<c.length;e++)if(f=b(c[e]+a),"Ms"==f.substr(0,2)&&(f="m"+f.substr(1)),f in d.style)return f};f.prototype.yO=function(){var a,b;b=this.zg();for(a=0;a<b.length;a+=1)this.P_(b[a])};f.prototype.P_=function(a){a=this.fm(a);this.$La(a)};f.prototype.Hha=function(a,b){var c;c=this.fm(a);this.Gha(c);b&&(c=1==this.zg().length?c.length:this.Hua(),this.Qg("accessibleMultiCellSelected",{num:c}))};f.prototype.Hua=function(){var a,b,c,d;a=0;b=this.zg();for(d=0;d<b.length;d++)c=this.fm(b[d]),a+=c.length;
return a};f.prototype.$La=function(a){var b,c;if(null!=a&&0!=a.length)for(b=0;b<a.length;b+=1)c=a[b],this.AX(c,["selected"])};f.prototype.Gha=function(a){var b,c;if(null!=a&&0!=a.length)for(b=0;b<a.length;b+=1)c=a[b],this.QU(c,["selected"])};f.prototype.gM=function(a,b){var c,d,e;d=this.zg();for(c=0;c<d.length;c+=1)e=this.fm(d[c],a,b),this.Gha(e)};f.prototype.oha=function(a){var b;this.q.Od()?b=this.fk(document.elementFromPoint(a.touches[0].clientX,a.touches[0].clientY)):(b=a.target,b=this.fk(b));
null!=b&&(b={row:this.sA(b.parentNode),column:this.At(b)},this.hA(b,a))};f.prototype.Uk=function(a){var b=this.o("selected");return"row"==this.pa.ij()&&null!=b?this.q.Aa(this.iA(a),b):null!=b?this.q.Aa(a,b):!1};f.prototype.lv=function(a){var b,c,d,e,f,g,q,p;"row"==this.pa.ij()&&(a=this.createIndex(a.row));b=a.row;a=a.column;c=-1;d=this.zg();for(e=0;e<d.length;e+=1)if(f=d[e],g=f.startIndex,f=this.NY(f),q=g.row,p=f.row,q==b&&p==b)if(!isNaN(g.column)&&!isNaN(f.column)){if(g=g.column,f=f.column,g==a&&
f==a){c=e;break}}else if(isNaN(a)){c=e;break}-1!=c&&(this.P_(d[c]),d.splice(c,1))};f.prototype.eZ=function(a){var b,c,d;c=this.fk(a.target);null!=c&&(b={row:this.sA(c.parentNode),column:this.At(c)});null==b||void 0==b||this.Mn()&&2===a.button&&this.sK(b)||(c=this.q.Dfa(a),d=a.shiftKey,this.Mn()?this.q.Od()?(this.Ez(),null!=this.N&&this.uea(),this.Jr(b,a,!1)):c||d?!c&&d?this.hA(b,a):this.Jr(b,a,!0):this.Jr(b,a,!1):this.Jr(b,a,!1))};f.prototype.sK=function(a,b){var c,d,e,f,g;null==b&&(b=this.zg());
for(g=0;g<b.length;g+=1)if(c=b[g],d=c.startIndex,c=this.NY(c),e=d.row,f=c.row,!(a.row<e||-1!=f&&a.row>f)){if(isNaN(d.column)||isNaN(c.column))return!0;d=d.column;c=c.column;if(!(a.column<d||-1!=c&&a.column>c))return!0}return!1};f.prototype.yra=function(a,b){var c,d,e;if(a.length!==b.length)return!1;for(c=0;c<a.length;c+=1){e=!1;for(d=0;d<b.length;d+=1)a[c].startIndex.row===b[d].startIndex.row&&a[c].startIndex.column===b[d].startIndex.column&&a[c].endIndex.row===b[d].endIndex.row&&a[c].endIndex.column===
b[d].endIndex.column&&(e=!0);if(!1===e)return!1}return!0};f.prototype.iA=function(a){return this.find(a,"row")};f.prototype.Nk=function(a){var b;this.yO();this.Ez();b=this.zg();this.Vt=[];this.zI(a,b)};f.prototype.x_=function(a){this.TF=a;this.Qg(a?"accessibleRangeSelectModeOn":"accessibleRangeSelectModeOff")};f.prototype.qDa=function(a,b,c){a=this.createIndex(a,0);b=this.createIndex(b,-1);this.Pca(a,b,c)};f.prototype.pDa=function(a,b,c){a=this.createIndex(0,a);b=this.createIndex(-1,b);this.Pca(a,
b,c)};f.prototype.Pca=function(a,b,c){this.yO();this.lS(a,b,this.rDa.bind(this,c))};f.prototype.rDa=function(a,b){var c,d;d=this.zg();c=[];c.push(b);this.Vt=c;this.Hha(b);this.Vj()&&(this.$d=this.N.indexes,this.pn());this.zI(a,d)};f.prototype.zg=function(){null==this.Vt&&(this.Vt=[]);return this.Vt};o_("DvtDataGrid.prototype.GetSelection",f.prototype.zg,void 0);f.prototype.yP=function(a){void 0!=a&&(null==a&&(a=[]),this.yO(),this.zg(),this.Vt=a,null!=this.ga&&this.gM(this.Ea,this.ob))};o_("DvtDataGrid.prototype.SetSelection",
f.prototype.yP,void 0);f.prototype.FHa=function(a,b){var c={event:a,ui:{selection:this.zg(),previousSelection:b}};this.fireEvent("select",c)};f.prototype.hA=function(a,b){var c;c=this.q.Od()?this.Iia:this.N.indexes;null!=c&&(this.sca(),this.$d=a,"row"==this.pa.ij()&&(a=this.createIndex(a.row)),this.lS(c,a,this.Lta.bind(this,b)))};f.prototype.Lta=function(a,b){var c,d,e,f;d=this.zg();e=d[d.length-1];c=e.startIndex.row==b.startIndex.row;null!=e.startIndex.column&&null!=b.startIndex.column&&(c=c&&e.startIndex.column==
b.startIndex.column);f=e.endIndex.row==b.endIndex.row;null!=e.endIndex.column&&null!=b.endIndex.column&&(f=f&&e.endIndex.column==b.endIndex.column);c&&f||(c=d.slice(0),c.pop(),c.push(b),this.Vt=c,this.P_(e),this.Hha(b,!0),this.hAa(),this.zI(a,d),this.TF&&!this.q.Od()&&this.x_(!1))};f.prototype.sca=function(){var a;null==this.$d||this.Vj()&&this.$d.row==this.N.indexes.row&&this.$d.column==this.N.indexes.column||(a=this.createRange(this.$d),a=this.fm(a),null!=a&&0<a.length&&this.Uz(a[0]))};f.prototype.hAa=
function(){var a;null==this.$d||this.Vj()&&this.$d.row==this.N.indexes.row&&this.$d.column==this.N.indexes.column||(this.Vj()&&(a=this.createRange(this.N.indexes),a=this.fm(a),null!=a&&0<a.length&&this.Uz(a[0])),a=this.createRange(this.$d),a=this.fm(a),null!=a&&0!=a.length&&(this.FX(this.$d),a=this.q.Aa(a[0],this.o("row"))?a[0].firstChild:a[0],this.Hz(this.hS(a),null,a)))};f.prototype.Jr=function(a,b,c){null==c&&(c=!1);this.sca();this.Pq(a,b);"row"==this.pa.ij()&&(a=this.createIndex(a.row));this.lS(a,
a,this.oDa.bind(this,a,b,c))};f.prototype.oDa=function(a,b,c,d){var e,f;f=this.zg();e=f.slice(0);c||(this.TF?this.Vj()&&null!=this.Uf&&"cell"==this.Uf.type&&this.$d.row==this.Uf.indexes.row&&this.$d.column==this.Uf.indexes.column&&!this.q.Od()&&(e.pop(),this.sK(this.Uf.indexes,e)||this.AX(this.nJ(this.Uf.indexes),["selected"])):(this.yO(),e=[]));this.$d=a;e.push(d);this.Vt=e;this.QU(this.nJ(a),["selected"]);this.zI(b,f)};f.prototype.zI=function(a,b){var c=this.zg();this.q.Od()&&this.Mn()&&0<c.length&&
(this.Jpa(a),this.EV());this.yra(c,b)||this.FHa(a,b)};f.prototype.Jpa=function(a){var b,c,d;null==this.Zg&&null==this.kj&&(d=this.ca.gc()?"right":"left",b=this.cU(),this.Zg=document.createElement("div"),this.Zg.className=this.o("toucharea"),this.ma(this.Zg,-b/2,"top"),c=document.createElement("div"),c.className=this.o("selectaffordancetop"),c.setAttribute("role","button"),c.setAttribute("aria-label",this.ca.yh("accessibleSelectionAffordanceTop")),this.Zg.appendChild(c),this.kj=document.createElement("div"),
this.kj.className=this.o("toucharea"),this.ma(this.kj,-1*b/2,"bottom"),c=document.createElement("div"),c.className=this.o("selectaffordancebottom"),c.setAttribute("role","button"),c.setAttribute("aria-label",this.ca.yh("accessibleSelectionAffordanceBottom")),this.kj.appendChild(c),c=this.pa.ij(),"row"===c?(b=this.Wb(this.ga)/2+this.rc-b/2,this.ma(this.Zg,b,d),this.ma(this.kj,b,d)):(a=a.target,a=this.fk(a),b=this.ta(a,d)-b/2,this.ma(this.Zg,b,d),this.ma(this.kj,b+this.bY(a),d)),d=this.fm(this.createRange(this.N.indexes))[0].parentNode,
d.appendChild(this.Zg),d.appendChild(this.kj))};f.prototype.Ez=function(){this.Vj()&&this.Zg&&this.Zg.parentNode&&(this.Zg.parentNode.removeChild(this.Zg),this.kj.parentNode.removeChild(this.kj))};f.prototype.EV=function(){var a,b,c,d,e;a=this.zg();0<a.length&&(d=this.pa.ij(),b=this.Nj(a[a.length-1].startKey.row),c=this.Nj(a[a.length-1].endKey.row),null!=this.Zg&&null!=this.kj&&("row"===d?(b.appendChild(this.Zg),c.appendChild(this.kj)):(d=this.ca.gc()?"right":"left",e=this.fm(a[a.length-1]),a=e[0],
e=e[e.length-1],b.appendChild(this.Zg),c.appendChild(this.kj),this.ma(this.Zg,this.ta(a,d)-this.cU()/2,d),this.ma(this.kj,this.ta(e,d)+this.bY(e)-this.cU()/2,d))))};f.prototype.Nca=function(){var a,b;"row"===this.pa.ij()&&null!=this.Zg&&(b=this.ca.gc()?"right":"left",a=this.Wb(this.ga)/2+this.rc,this.ma(this.Zg,a,b),this.ma(this.kj,a,b))};f.prototype.cU=function(){var a,b;null==this.Jia&&(a=document.createElement("div"),a.className=this.o("toucharea"),a.style.visibilty="hidden",a.style.top="0px",
a.style.visibilty="0px",this.ba.appendChild(a),b=a.offsetWidth,this.ba.removeChild(a),this.Jia=b);return this.Jia};f.Wla=800;f.prototype.iya=function(a){var b;this.$m()||(a=a.target,(b=this.cl(a))&&this.Dda(b,!1),(this.q.Aa(a,this.o("sortascending"))||this.q.Aa(a,this.o("sortdescending")))&&this.q.nb(a,this.o("hover")))};f.prototype.hya=function(a){var b,c;!this.$m()&&(b=a.target,c=a.relatedTarget,a=this.cl(b),null!=a&&null!=c&&a===this.cl(c)||this.Dda(a,!0),this.q.Aa(b,this.o("sortascending"))||
this.q.Aa(b,this.o("sortdescending")))&&(this.q.pb(b,this.o("hover")),this.q.pb(b,this.o("selected")))};f.prototype.fya=function(a){this.$m()||this.q.nb(a,this.o("selected"))};f.prototype.nea=function(a,b){var c;null!=a&&(c=this.RJ(a),"descending"===b&&this.q.Aa(c,this.o("sortascending"))?(this.q.pb(c,this.o("sortascending")),this.q.nb(c,this.o("sortdescending"))):"ascending"===b&&this.q.Aa(c,this.o("sortdescending"))&&(this.q.pb(c,this.o("sortdescending")),this.q.nb(c,this.o("sortascending"))))};
f.prototype.Dda=function(a,b){var c,d=!1;null!=a&&((c=this.RJ(a),null!=this.Qd&&(d=this.Qd.key===this.ic(a)),!1!==b||d)?!0!==b||d||(this.q.pb(c,this.o("default")),this.q.nb(c,this.o("disabled"))):(this.q.pb(c,this.o("disabled")),this.q.nb(c,this.o("default"))))};f.prototype.G4=function(a){var b,c,d;d=document.createElement("div");d.className=this.o("sortcontainer");b=document.createElement("div");c=this.o("icon")+" "+this.o("clickableicon");a.key===(null!=this.Qd?this.Qd.key:null)?(a=null!=this.Qd?
this.Qd.direction:null,"ascending"===a?b.className=this.o("sortascending")+" "+c+" "+this.o("default"):"descending"===a&&(b.className=this.o("sortdescending")+" "+c+" "+this.o("default"))):(c+=" "+this.o("disabled"),b.className=this.o("sortascending")+" "+c);d.appendChild(b);return d};f.prototype.mxa=function(a,b){if(!this.$m()){var c=a.getAttribute(this.ca.Gc("sortDir"));this.TI(b,a,null==c||"descending"===c?"ascending":"descending")}};f.prototype.B9=function(a){var b,c;this.$m()||(c=a.target,c=
this.cl(c),null!=c&&(null==b&&(b=null!=this.Qd&&this.Qd.key===this.ic(c)?"ascending"===this.Qd.direction?"descending":"ascending":"ascending"),this.TI(a,c,b)))};f.prototype.q9=function(a,b,c){null==c||this.$m()||this.TI(a,c,b)};f.prototype.TI=function(a,b,c){var d,e;!0!=this.zia?(this.SF=null,d=this.ic(b),e=this.yq(b),this.CCa(),b.setAttribute(this.ca.Gc("sortDir"),c),this.Qd={event:a,key:d,axis:e,direction:c},this.nea(b,c),this.Epa(),null!=c&&null!=d&&null!=e&&(this.zia=!0,this.hB(),a={axis:e,key:d,
direction:c},this.Ta.sort(a,{success:this.HU.bind(this),error:this.eya.bind(this)})),this.Qg("ascending"===c?"accessibleSortAscending":"accessibleSortDescending",{id:d})):this.SF={event:a,header:b,direction:c}};f.prototype.eya=function(){this.or()};f.prototype.CCa=function(){var a,b;null!=this.Qd&&(a=this.Wd(this.Qd.key,this.tb,this.o("colheadercell")),a.removeAttribute(this.ca.Gc("sortDir")),b=this.RJ(a),this.nea(a,"ascending"),"descending"===this.Qd.direction&&(this.q.pb(b,this.o("sortdescending")),
this.q.nb(b,this.o("sortascending"))),this.q.nb(b,this.o("disabled")),this.q.pb(b,this.o("default")),this.q.pb(this.T8(a),this.o("enabled")))};f.prototype.Epa=function(){var a,b;null!=this.Qd&&(a=this.Wd(this.Qd.key,this.tb,this.o("colheadercell")),b=this.RJ(a),this.q.nb(b,this.o("default")),this.q.pb(b,this.o("disabled")),this.q.pb(b,this.o("selected")),this.q.nb(this.T8(a),this.o("enabled")))};f.prototype.yq=function(a){var b,c;b=this.o("colheadercell");c=this.o("rowheadercell");return this.q.Aa(a,
b)?"column":this.q.Aa(a,c)?"row":null};f.prototype.HU=function(){this.or();this.Vj()?this.h$({row:this.N.keys.row,column:this.N.keys.column},this.Sxa):this.PS(this.Ea,this.ob-this.Ea+1,!1)};f.prototype.Sxa=function(a){var b,c;a=(-1===a.row?0:a.row)*this.hc;b=a+this.hc;c=this.Mf();this.Kb<=a&&b<=this.Kb+this.xb(this.ga)||c?this.PS(this.Ea,this.ob-this.Ea+1,!1):(this.Kb=Math.min(a,this.FJ()),a=Math.floor(this.Kb/this.hc),b=a*this.hc,this.Ea=a,this.ob=-1,this.Zb=a,this.Bb=-1,this.ld=this.kf=this.ed=
this.gd=b,this.PS(a,null,!0))};f.prototype.PS=function(a,b,c){var d=document.createDocumentFragment(),e=document.createDocumentFragment();this.fetchHeaders("row",a,d,e,b,{success:this.$Ia.bind(this),error:this.XM});this.fetchCells(this.ga,a,this.Lb,b,this.qd-this.Lb+1,{success:this.EIa.bind(this,d,e,c),error:this.XM})};f.prototype.$Ia=function(a,b,c,d){var e,f,g,q,p,n,u,v;e=b.axis;g=b.start;f=b.header;b=b.endHeader;this.rd[e]=!1;if(null!=a){e=a.getCount();q=n=0;u=this.o("row")+" "+this.o("headercell")+
" "+this.o("rowheadercell");for(v=this.pa.kr("row");0<e-q;)p=g+q,p=this.Cn(f,p,0,0,this.gd+n,!0,d,v,a,"row",u,this.Ac),q+=p.count,n+=p.tk;this.Bb=this.Zb+e-1;this.ld=this.kf+n}if(null!=c){e=c.getCount();q=n=0;u=this.o("row")+" "+this.o("endheadercell")+" "+this.o("rowendheadercell");for(v=this.pa.kr("rowEnd");0<e-q;)p=g+q,p=this.Cn(b,p,0,0,this.gd+n,!0,d,v,c,"rowEnd",u,this.Pd),q+=p.count,n+=p.tk;this.zb=this.Bc+e-1;this.Se=this.Ah+n}this.rh()};f.prototype.EIa=function(a,b,c,d,e){var g,s,q,p,n;this.rd.cells=
!1;p=f.Wla;this.Ln()&&this.or();g=e[0].start;s=d.getCount("row");q=e[1].start;d.getCount("column");e=document.createDocumentFragment();d=this.dR(e,!0,this.gd,g,s,q,!1,d);this.ob=this.Zb+s-1;this.ed=this.gd+d.totalRowHeight;d=this.ga.firstChild;g=this.qa.firstChild;q=this.La.firstChild;!0==c&&(n=this.Mf(),this.q.Od()?(this.AS(),this.scrollTo(this.rc,this.Kb)):(this.Hia=!0,this.ga.scrollTop=this.Kb,this.$W()));!p||0==p||!this.q.tO()||1===s||1<this.Ac&&null!=this.Ac||!1===n?(this.dp(),this.GU(e,a,b)):
this.DKa(p,g,a,d,e,q,b);this.rh()};f.prototype.GU=function(a,b,c){var d;1<b.childNodes.length&&(d=this.qa.firstChild,this.q.empty(d),d.appendChild(b));1<c.childNodes.length&&(d=this.La.firstChild,this.q.empty(d),d.appendChild(c));b=this.ga.firstChild;this.q.empty(b);b.appendChild(a);this.$Ca();this.zia=!1;this.$ta();this.cta();this.HA=!1;this.rh();this.lL()};f.prototype.DKa=function(a,b,c,d,e,f,g){var q,p,n,u,v,w,y,x,z,C,E,B,K,I,Q,A,J,D,M;q=this;this.dp();w=[];y=[];M=[];C=1<c.childNodes.length?!0:
!1;J=1<g.childNodes.length?!0:!1;I=this.Kb;Q=this.Cv();B=e.cloneNode(!0);K=c?c.cloneNode(!0):null;D=g?g.cloneNode(!0):null;n={};for(x=0;x<d.childNodes.length;x++)z=d.childNodes[x],p=this.ic(z),u=this.ta(z,"top"),v=u+this.xb(z),v=v<I||u>Q?u:Q,n[p]={ZA:u,ZN:v};for(x=0;x<e.childNodes.length;x++)z=e.childNodes[x],p=this.ic(z),v=this.ta(z,"top"),this.JE(B.childNodes[x],p),this.JE(K.childNodes[x],p),this.JE(D.childNodes[x],p),n.hasOwnProperty(p)?n[p].ZN=v:(u=Q,E=v+this.xb(z),n[p]={ZA:u,ZN:v},E>=I&&v<Q&&
(z=B.childNodes[x],this.ma(z,n[p].ZA,"top"),w.push(z),C&&(z=K.childNodes[x],this.ma(z,n[p].ZA,"top"),y.push(z)),J&&(z=D.childNodes[x],this.ma(z,n[p].ZA,"top"),M.push(z))));for(x=0;x<w.length;x++)d.appendChild(w[x]),C&&b.appendChild(y[x]),J&&f.appendChild(M[x]);for(x=d.childNodes.length-1;0<=x;x--)if(z=d.childNodes[x],p=this.ic(z),0!=n[p].ZN-n[p].ZA){A=z;break}null!=A?(A.addEventListener("transitionend",this.GU.bind(this,e,c,g),!1),this.HA=!0,setTimeout(function(){var c,e,g;for(g=0;g<d.childNodes.length;g++)e=
0*g+"ms",z=d.childNodes[g],c=n[q.ic(z)],c=c.ZN-c.ZA,0!=c&&(q.ff(z,a/2+"ms",e,"ease-in",0,c),C&&q.ff(b.childNodes[g],a/2+"ms",e,"ease-in",0,c),J&&q.ff(f.childNodes[g],a/2+"ms",e,"ease-in",0,c))},0)):this.GU(e,c,g)};f.prototype.$Ca=function(){var a,b;if(null!=this.N)if(b=this.N.axis,"cell"==this.N.type)a=this.Nj(this.N.keys.row),b=this.Wd(this.N.keys.column,this.tb,this.o("colheadercell")),null!=a&&null!=b?(a=this.createIndex(this.sA(a),this.wp(b)),this.qg(a),this.yc()?this.Jr(a):this.Pq(a)):(this.Fc(null,
null,!0),this.yc()&&this.Nk(this.Qd.event));else if("row"==b||"rowEnd"==b)a="row"==b?this.qa:this.La,b="row"==b?this.o("rowheadercell"):this.o("rowendheadercell"),a=this.Wd(this.N.key,a,b),null!=a?this.Fc(a):this.Fc(null)};f.prototype.RJ=function(a){return a.lastChild.firstChild};f.prototype.T8=function(a){return a.lastChild};f.prototype.$ta=function(){this.fireEvent("sort",{event:this.Qd.event,ui:{header:this.Qd.key,direction:this.Qd.direction}})};f.prototype.cta=function(){null!=this.SF?this.TI(this.SF.event,
this.SF.header,this.SF.direction):this.dr()};f.U0=5;f.V0=8;f.prototype.CF=function(a){var b;!1===this.om?(b=this.find(a.target,"header"),null==b&&(b=this.find(a.target,"endheader")),null==b||b!=this.qa&&b!=this.tb&&b!=this.La&&b!=this.Pb||(this.Gp=this.hKa(a),null!=this.Wa&&("default"==this.Gp?(this.Wa.style.cursor="",null!=this.Kp&&(this.Kp.style.cursor="")):(this.Wa.style.cursor=this.Gp,null!=this.Kp&&(this.Kp.style.cursor=this.Gp))))):this.hJa(a)};f.prototype.uha=function(a){return"col-resize"===
this.Gp||"row-resize"===this.Gp?(this.om=!0,this.q.Od()?(this.IN=a.touches[0].pageX,this.WZ=a.touches[0].pageY):(document.addEventListener("mousemove",this.zN,!1),document.addEventListener("mouseup",this.AN,!1),this.IN=a.pageX,this.WZ=a.pageY),this.KN=this.NN=this.MN=this.Eia=this.LN=this.Dia=0,this.bG={width:this.Wb(this.Wa),height:this.xb(this.Wa)},!0):!1};f.prototype.vha=function(a){var b,c;if(!0===this.om){c=this.Wb(this.Wa);b=this.xb(this.Wa);if(c!=this.bG.width||b!=this.bG.height)b="col-resize"===
this.Gp?this.Wa.style.width:this.Wa.style.height,a={event:a,ui:{header:this.ic(this.Wa),oldDimensions:{width:this.bG.width,height:this.bG.height},newDimensions:{width:this.Wb(this.Wa),height:this.xb(this.Wa)},size:b}},this.fireEvent("resize",a);this.om=!1;this.Gp="default";this.Wa.style.cursor="";null!=this.Kp&&(this.Kp.style.cursor="");this.bG=this.Kp=this.TA=this.Wa=null;document.removeEventListener("mousemove",this.zN,!1);document.removeEventListener("mouseup",this.AN,!1)}};f.prototype.Qo=function(a){return null==
a?!1:"true"===a.getAttribute(this.ca.Gc("resizable"))};f.prototype.hKa=function(a){var b=a.target,c,d,e,g,s,q,p,n,u,v,w,y,x;(b=this.find(a.target,"headercell"))||(b=this.find(a.target,"endheadercell"));if(!b)return"default";c=this.mA(b);u=this.wp(b);v=this.gk(b);"column"===c?(p="enable"===this.pa.wi(c,"height")?!0:!1,q=this.Qo(b),w=this.eb(u-1,v,this.tb,this.Zc,this.sd),n=this.Qo(w),y=this.eb(u,v-1,this.tb,this.Zc,this.sd)):"row"===c?(q="enable"===this.pa.wi(c,"width")?!0:!1,p=this.Qo(b),w=this.eb(u-
1,v,this.qa,this.Ac,this.Zb),n=this.Qo(w),y=this.eb(u,v-1,this.qa,this.Ac,this.Zb)):"columnEnd"===c?(p="enable"===this.pa.wi(c).height?!0:!1,q=this.Qo(b),w=this.eb(u-1,v,this.Pb,this.je,this.Bd),n=this.Qo(w),y=this.eb(u,v-1,this.Pb,this.je,this.Bd)):"rowEnd"===c&&(q="enable"===this.pa.wi(c).width?!0:!1,p=this.Qo(b),w=this.eb(u-1,v,this.La,this.Pd,this.Bc),n=this.Qo(w),y=this.eb(u,v-1,this.La,this.Pd,this.Bc));this.q.Od()?(e=a.touches[0].pageX,g=a.touches[0].pageY,s=f.V0):(e=a.pageX,g=a.pageY,s=f.U0);
d=this.$Ha(b);a=this.ca.gc();x="columnEnd"===c||"rowEnd"===c;u=e<d[0]+s;v=g<d[1]+s;e=e>d[2]-s;d=g>d[3]-s;if("column"===c||"columnEnd"===c){if(q&&(a?u:e))return this.Wa=b,"col-resize";if(n&&(a?e:u)){if(this.Wa=w,this.Kp=b,null!==this.Wa)return"col-resize"}else if(p){if(!x&&d||x&&v)return this.Wa=b,"row-resize";if(!x&&v||x&&d)return this.Wa=y,this.Kp=b,"row-resize"}}else if("row"===c||"rowEnd"===c){if(p&&d)return this.Wa=b,"row-resize";if(n&&v&&(this.Wa=w,this.Kp=b,null!==this.Wa))return"row-resize";
if(q){if(!x&&(a?u:e)||x&&(a?e:u))return this.Wa=b,"col-resize";if(!x&&(a?e:u)||x&&(a?u:e))if(this.Wa=y,this.Kp=b,null!==this.Wa)return"col-resize"}}return"default"};f.prototype.hJa=function(a){var b,c;this.QF=a.pageX;this.yN=a.pageY;this.q.Od()?(this.QF=a.touches[0].pageX,this.yN=a.touches[0].pageY):(this.QF=a.pageX,this.yN=a.pageY);b=this.q.Aa(this.Wa,this.o("colheadercell"))||this.q.Aa(this.Wa,this.o("colendheadercell"))?"column":"row";a=this.q.Aa(this.Wa,this.o("endheadercell"));"col-resize"===
this.Gp?"column"===b?(b=this.ffa(this.Wa),c=this.Cga("column",b,a),this.Fja(b,c)):"row"===b&&(b=this.Wb(this.Wa),c=this.Cga("row",b,a),this.Hja(c-b,a)):"row-resize"===this.Gp&&("row"===b?(b=this.lM(this.Wa),c=this.Bga("row",b,a),this.Gja(b,c)):"column"===b&&(b=this.xb(this.Wa),c=this.Bga("column",b,a),this.Eja(c-b,a)));this.jM();this.q.Od()&&this.EV();this.IN=this.QF;this.WZ=this.yN};f.prototype.Fja=function(a,b){var c,d;c=b-a;0!=c&&(null!=this.ga.firstChild&&(d=this.Wb(this.ga.firstChild),d+=c,this.ke(this.ga.firstChild,
d)),this.eLa(c),this.mj+=c,this.yi+=c,this.lk+=c,this.og=d/this.Ta.getCount("column"),this.UN())};f.prototype.Gja=function(a,b){var c,d;c=b-a;0!=c&&(null!=this.ga.firstChild&&(d=this.xb(this.ga.firstChild),d+=c,this.ad(this.ga.firstChild,d)),this.gLa(c),this.ed+=c,this.ld+=c,this.Se+=c,this.hc=d/this.Ta.getCount("row"),this.UN())};f.prototype.Eja=function(a,b){if(0!=a){var c=this.gk(this.Wa)+this.nA(this.Wa)-1;b?this.tN[c]+=a:this.Lt[c]+=a;this.dLa(a,c,b);b?(this.Jt+=a,this.ad(this.Pb,this.Jt)):(this.Kt+=
a,this.ad(this.tb,this.Kt));this.UN()}};f.prototype.Hja=function(a,b){var c;0!=a&&(c=this.gk(this.Wa)+this.nA(this.Wa)-1,b?this.PN[c]+=a:this.fG[c]+=a,this.hLa(a,c,b),b?(this.Tt+=a,this.ke(this.La,this.Tt)):(this.Ut+=a,this.ke(this.qa,this.Ut)),this.UN())};f.prototype.Cga=function(a,b,c){var d,e,f;d=this.t8("width",a);this.Wb(this.ga);e=this.ca.gc()?this.IN-this.QF:this.QF-this.IN;c&&"row"==a&&(e*=-1);c=b+e+this.Dia+this.LN+this.NN;f=Math.round(this.getWidth()/2);c<d?(this.LN+=e-d+b,c=d):this.Dia=
this.LN=0;"row"===a&&(c>f?(this.NN+=e-f+b,c=f):this.NN=0);return c};f.prototype.Bga=function(a,b,c){var d,e,f;d=this.t8("height",a);this.xb(this.ga);e=this.yN-this.WZ;c&&"column"==a&&(e*=-1);c=b+e+this.Eia+this.MN+this.KN;f=Math.round(this.getHeight()/2);c<d?(this.MN+=e-d+b,c=d):this.Eia=this.MN=0;"column"===a&&(c>f?(this.KN+=e-f+b,c=f):this.KN=0);return c};f.prototype.t8=function(a,b){var c,d,e,g,s,q,p,n;e=this.Wa;d=this.gk(e);n=this.nA(e);g=this.tua(a,e);g=Math.max(this.q.Od()?2*f.V0:2*f.U0,g);
if("column"===b&&(1===this.Zc||"width"===a&&this.Zc===d+1||"height"===a&&1===n)||"row"===b&&(1===this.Ac||"height"===a&&this.Ac===d+1||"width"===a&&1===n))return g;c=this.wp(e);s=this.ec(this.Wa.parentNode,"extent");q=this.ta(e,a);"column"===b?"width"===a?(d=this.eb(c+s-1,this.Zc-1,this.tb,this.Zc,this.sd),p=this.ta(d,a)):p=this.Aua(d+n-1,e):"row"===b&&("height"===a?(d=this.eb(c+s-1,this.Ac-1,this.qa,this.Ac,this.Zb),p=this.ta(d,a)):p=this.a8(d+n-1,e,this.fG,"width"));return q-(p-g)};f.prototype.tua=
function(a,b){var c,d,e,f;if(null==this.TA){c=["top","right","bottom","left"];d="width"===a?1:0;e=0;for(f=window.getComputedStyle(b);4>d;d+=2)e+=parseFloat(f.getPropertyValue("padding-"+c[d])),e+=parseFloat(f.getPropertyValue("border-"+c[d]+"-width"));this.TA=Math.round(e)}return this.TA};f.prototype.UN=function(){var a,b,c,d,e,f,g,q,p,n,u,v,w,y,x,z=0,C=0,E,B;a=this.getWidth();b=this.getHeight();c=this.tb;E=this.Pb;d=this.qa;B=this.La;e=this.ga;n=e.firstChild;f=this.jA();p=this.IY();q=this.Mw();x=
this.YY();p=b-f-p;g=a-q-x;x=this.q.yp();a=this.ca.gc()?"right":"left";this.$m()&&(null==this.nm?(v=this.yC(),this.ba.appendChild(v)):v=this.nm,b=this.xb(v),v=this.Wb(v),b>this.xb(n)&&this.ad(n,b),v>this.Wb(n)&&this.ke(n,v));n=this.Wb(e.firstChild);b=this.xb(e.firstChild);(w=this.lN(g))?(y=this.mN(p-x),e.style.overflow="auto"):(y=this.mN(p))?(w=this.lN(g-x),e.style.overflow="auto"):e.style.overflow="hidden";this.On=w;this.Pn=y;-1!=this.$c?(v=Math.min(b+(w?x:0),p),p=w?v-x:v):(v=p,p=Math.min(b,w?v-x:
v));-1!=this.zb?(u=Math.min(n+(y?x:0),g),g=y?u-x:u):(u=g,g=Math.min(n,y?u-x:u));y=q+g+(y?x:0);x=f+p+(w?x:0);this.ma(d,0,a);this.ma(d,f,"top");this.ad(d,p);this.ma(B,y,a);this.ma(B,f,"top");this.ad(B,p);this.ma(c,q,a);this.ke(c,g);this.ma(E,q,a);this.ma(E,x,"top");this.ke(E,g);this.ma(e,f,"top");this.ma(e,q,a);this.ke(e,u);this.ad(e,v);this.bx=n-g;this.$w=b-p;this.jM();this.g4();this.q.Od()&&(this.rc>this.bx&&(z=this.bx-this.rc),this.Kb>this.$w&&(C=this.$w-this.Kb),0!=z||0!=C)&&(this.AS(),this.Ir(z,
C))};f.prototype.eLa=function(a){var b,c,d,e;b=this.ca.gc()?"right":"left";d=this.tb.style.display;e=this.Pb.style.display;this.ga.style.display="none";this.tb.style.display="none";this.Pb.style.display="none";c=this.wp(this.Wa);1<this.Zc&&this.Wa===this.Wa.parentNode.firstChild&&null!=this.Wa.nextSibling&&(c+=this.ec(this.Wa.parentNode,"extent")-1);this.Qq(this.tb.firstChild,c,a,b,this.o("colheadercell"),"column");this.Qq(this.Pb.firstChild,c,a,b,this.o("colendheadercell"),"column");this.yda(a,!0,
void 0,c-this.Lb+1,this.qd-this.Lb+1,c-this.Lb,b);this.ga.style.display="";this.tb.style.display=d;this.Pb.style.display=e};f.prototype.yda=function(a,b,c,d,e,f,g){var q,p,n,u,v,w;if(null!=this.ga.firstChild)for(n=this.ga.firstChild.childNodes,q=0;q<n.length;q++)for(u=n[q].childNodes,b&&(v=u[f],null==c&&(c=this.Wb(v)+a),this.ke(v,c)),p=d;p<e;p+=1)v=u[p],w=this.ta(v,g)+a,this.ma(v,w,g)};f.prototype.gLa=function(a){var b,c,d,e,f,g;f=this.qa.style.display;g=this.La.style.display;this.ga.style.display=
"none";this.qa.style.display="none";this.La.style.display="none";c=this.wp(this.Wa);1<this.Ac&&this.Wa===this.Wa.parentNode.firstChild&&null!=this.Wa.nextSibling&&(c+=this.ec(this.Wa.parentNode,"extent")-1);this.Qq(this.qa.firstChild,c,a,"top",this.o("rowheadercell"),"row");this.Qq(this.La.firstChild,c,a,"top",this.o("rowendheadercell"),"row");if(null!=this.ga.firstChild&&(b=this.ga.firstChild.childNodes,e=b[c-this.Ea],null!=e))for(d=this.xb(e)+a,this.ad(e,d),c=c-this.Ea+1;c<b.length;c++)e=b[c],d=
this.ta(e,"top")+a,this.ma(e,d,"top");this.ga.style.display="";this.qa.style.display=f;this.La.style.display=g};f.prototype.Qq=function(a,b,c,d,e,f){var g,q,p,n,u=0;a=a.lastChild;if(null!=a){(q=this.q.Aa(a,e))?(p=a.parentNode,g=a,n=this.wp(g)):(p=a,g=a.firstChild,n=this.ec(p,"start"));for(;b<n;)if(q)p=this.ta(g,d)+c,this.ma(g,p,d),a=a.previousSibling,q=this.q.Aa(a,e),p=a.parentNode,g=a,n=this.wp(g);else{g=p.getElementsByClassName(e);for(q=0;q<g.length;q++)p=this.ta(g[q],d)+c,this.ma(g[q],p,d);a=a.previousSibling;
q=this.q.Aa(a,e);p=a;g=a.firstChild;n=this.ec(p,"start")}"column"==f?(u=this.Wb(g)+c,this.ke(g,u)):"row"==f?(u=this.xb(g)+c,this.ad(g,u)):null==f&&(p=this.ta(g,d)+c,this.ma(g,p,d));q||null==g.nextSibling?null!=f&&this.gG.B_(f,this.ic(g),u):this.Qq(a,b,c,d,e,f)}};f.prototype.dLa=function(a,b,c){var d,e,f;c?(c=this.Pb,d=this.o("colendheadercell"),e="columnEnd",f="bottom"):(c=this.tb,d=this.o("colheadercell"),e="column",f="top");c.style.display="none";this.ga.style.display="none";this.PW(c.firstChild,
a,b,f,d,e);c.style.display="";this.ga.style.display=""};f.prototype.hLa=function(a,b,c){var d,e,f;c?(c=this.La,d=this.o("rowendheadercell"),e="rowEnd",f=this.ca.gc()?"left":"right"):(c=this.qa,d=this.o("rowheadercell"),e="row",f=this.ca.gc()?"right":"left");c.style.display="none";this.ga.style.display="none";this.PW(c.firstChild,a,b,f,d,e);c.style.display="";this.ga.style.display=""};f.prototype.PW=function(a,b,c,d,e,f){var g,q,p,n;a=a.childNodes;for(g=0;g<a.length;g++)if(q=a[g],p=this.q.Aa(q,e))p=
this.gk(q),n=this.nA(q),p<=c&&c<p+n?"column"===f||"columnEnd"===f?(p=this.xb(q)+b,this.ad(q,p)):(p=this.Wb(q)+b,this.ke(q,p)):p>c&&(p=this.ta(q,d)+b,this.ma(q,p,d));else if(p=this.ec(q,"level"),p<=c)this.PW(q,b,c,d,e,f);else for(q=q.getElementsByClassName(e),n=0;n<q.length;n++)p=this.ta(q[n],d)+b,this.ma(q[n],p,d)};f.prototype.NIa=function(a,b,c,d){var e,f,g;f=parseInt(c,10);this.q.Aa(d,this.o("cell"))&&(d=b===this.ca.Vg("resizeHeight")?this.Jw(d,"row"):this.Jw(d,"column"));this.Wa=d;c=this.Wb(d);
e=this.xb(d);g=this.q.Aa(this.Wa,this.o("endheadercell"));b===this.ca.Vg("resizeWidth")?c!==f&&(this.q.Aa(this.Wa,this.o("colheadercell"))||this.q.Aa(this.Wa,this.o("colendheadercell"))?this.Qo(this.Wa)&&this.Fja(c,f):this.Hja(f-c,g)):b===this.ca.Vg("resizeHeight")&&(e=this.xb(d),e!==f&&(this.q.Aa(this.Wa,this.o("colheadercell"))||this.q.Aa(this.Wa,this.o("colendheadercell"))?this.Eja(f-e,g):this.Qo(this.Wa)&&this.Gja(e,f)));b=this.Wb(d);d=this.xb(d);if(b!=c||d!=e)a={event:a,ui:{header:this.ic(this.Wa),
oldDimensions:{width:c,height:e},newDimensions:{width:b,height:d},size:f}},this.fireEvent("resize",a),this.jM(),this.q.Od()&&this.EV();this.TA=this.Wa=null};f.prototype.$Ha=function(a){var b,c,d;b=this.Rfa(a);c=b[0];b=b[1];this.q.Aa(a,this.o("colheadercell"))?(d=this.ffa(a),a=this.xb(a)):(d=this.Wb(a),a=this.lM(a));return[c,b,c+d,b+a]};e.prototype.B_=function(a,b,c){this.pO[a][b]=c};e.prototype.pIa=function(a,b){return this.pO[a].hasOwnProperty(b)?this.pO[a][b]:null};e.prototype.clear=function(){this.pO=
{column:{},row:{}}};d.TG="ie";d.UO="gecko";d.w1="webkit";d.ama="unknown";d.JG="edge";d.ima="Windows";d.Vla="Solaris";d.hP="Mac";d.$la="Unknown";d.prototype.l8=function(){null==this.XZ&&this.eda();return this.XZ};d.prototype.m8=function(){null==this.YZ&&this.eda();return this.YZ};d.prototype.eda=function(){var a;this.platform===d.TG||this.platform===d.JG?this.YZ=this.XZ=1E6:(a=document.createElement("div"),a.style.cssText="width:1000000000px;height:1000000000px;display:none;",document.body.appendChild(a),
this.XZ=parseInt(parseFloat(window.getComputedStyle(a).height)/2,10),this.YZ=parseInt(parseFloat(window.getComputedStyle(a).width)/2,10),document.body.removeChild(a))};d.prototype.EGa=function(){var a=document.createElement("div");a.style.cssText="width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px;";document.body.appendChild(a);this.u_=a.offsetWidth-a.clientWidth;document.body.removeChild(a)};d.prototype.yp=function(){-1==this.u_&&this.EGa();return this.u_};d.prototype.Od=function(){if(void 0==
this.xZ){var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("mobile")||-1!=a.indexOf("android")?this.xZ=!0:this.xZ=!1}return this.xZ};d.prototype.nb=function(a,b){var c,e;null!=b&&null!=a&&(c=a.className,e=d.eT(c,b),-1==e&&(a.className=c?b+" "+c:b))};d.prototype.pb=function(a,b){var c,e,f;null!=b&&null!=a&&(c=a.className,e=d.eT(c,b),-1!=e&&(f=e+b.length,e=0==e?null:c.substring(0,e),c=f==c.length?null:c.substring(f+1),a.className=null==e?null==c?"":c:null==c?e:e+c))};d.prototype.Aa=function(a,b){return null!=
b&&null!=a?-1!=d.eT(a.className,b):!1};d.eT=function(a,b){var c,d,e,f,g,q;if(!a||!a.indexOf)return-1;if(b===a)return 0;c=b.length;d=a.length;e=a.indexOf(b);if(0<=e){f=0==e||" "==a.charAt(e-1);g=e+c;g=g==d||" "==a.charAt(g);if(f&&g)return e;q=a.lastIndexOf(b);if(q!=e)return f=a.charAt(q-1),g=q+c,g=g==d||" "==a.charAt(g),f&&g?q:a.indexOf(" "+b+" ")}return-1};d.prototype.Dfa=function(a){return this.fja===d.hP?a.metaKey:a.ctrlKey};d.prototype.XHa=function(a){var b,c;if(this.$q.ca.gc()){if(this.platform==
d.UO||this.platform==d.TG||this.platform==d.JG)return Math.abs(a.scrollLeft);b=this.$q.Pga();c=a.clientWidth;return Math.max(0,b-c-a.scrollLeft)}return a.scrollLeft};d.prototype.wLa=function(a,b){var c,e;this.$q.ca.gc()?this.platform===d.UO?a.scrollLeft=-b:this.platform==d.TG||this.platform==d.JG?a.scrollLeft=b:(c=this.$q.Pga(),e=a.clientWidth,a.scrollLeft=c-e-b):a.scrollLeft=b};d.prototype.Qsa=function(a){if(a){if(-1!=a.indexOf("win"))return d.ima;if(-1!=a.indexOf("mac"))return d.hP;if(-1!=a.indexOf("sunos"))return d.Vla}return d.$la};
d.prototype.Rsa=function(a){if(a&&-1==a.indexOf("opera")){if(-1!=a.indexOf("trident")||-1!=a.indexOf("msie"))return d.TG;if(-1!=a.indexOf("edge"))return d.JG;if(-1!=a.indexOf("applewebkit")||-1!=a.indexOf("safari"))return d.w1;if(-1!=a.indexOf("gecko/"))return d.UO}return d.ama};d.prototype.eIa=function(a){var b=0,c=0,d,b=a.deltaMode;if(b==a.DOM_DELTA_PIXEL)d=-1;else if(b==a.DOM_DELTA_LINE||b==a.DOM_DELTA_PAGE)d=-40;b=a.deltaX*d;c=a.deltaY*d;return{deltaX:b,deltaY:c}};d.prototype.empty=function(a){for(;a.firstChild;)this.$q.Kd(a.firstChild)};
d.prototype.tO=function(){var a=(document.body||document.documentElement).style,b="transition";if(/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||11>document.documentMode))return!1;if("string"==typeof a[b])return!0;for(var c="Moz webkit Webkit Khtml O ms".split(" "),b=b.charAt(0).toUpperCase()+b.substr(1),d=0;d<c.length;d++)if("string"==typeof a[c[d]+b])return!0;return!1};d.prototype.Cza=function(a,b){for(var c,d,e;null!=a&&a!=b;){c=a.nodeName;if(3!=a.nodeType)if(d=parseInt(a.getAttribute("tabIndex"),
10),e=parseInt(a.getAttribute(this.$q.ca.Gc("tabindex")),10),null!=d&&0<=d)if(this.Aa(a,this.$q.ca.o("cell"))||this.Aa(a,this.$q.ca.o("headercell"))||this.Aa(a,this.$q.ca.o("endheadercell")))break;else return!0;else if(c.match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&(-1!=d||-1!=e))return!0;a=a.parentNode}return!1};d.prototype.cka=function(){return this.fja==d.hP&&this.platform==d.w1?!0:!1};c.prototype.sp=function(a,b,c,d){return null!=a?(a=this.options[a],null!=b&&null!=a?(b=a[b],null!=c&&null!=
b?(c=b[c],null!=d&&null!=c?c[d]:c):b):a):null};c.prototype.evaluate=function(a,b){return"function"==typeof a?a.call(this,b):a};c.prototype.Iga=function(a,b){var c,d,e;"row"==b||"column"==b||"rowEnd"==b||"columnEnd"==b?(c="header",d=b,e=a):"cell"==b&&(c="cell",d=a);return this.sp(c,d,e)};c.prototype.gl=function(a,b,c){return void 0===c?this.sp(a,b):this.evaluate(this.Iga(a,b),c)};c.prototype.aja=function(a){return null!=a?a:!1};c.prototype.XY=function(){var a=this.gl("bandingInterval","row");return null!=
a?a:0};c.prototype.JM=function(){var a=this.gl("bandingInterval","column");return null!=a?a:0};c.prototype.MY=function(){return this.gl("emptyText")};c.prototype.PY=function(){var a;a=this.sp("gridlines","horizontal");return null!=a?a:"visible"};c.prototype.aZ=function(){var a;a=this.sp("gridlines","vertical");return null!=a?a:"visible"};c.prototype.jIa=function(){var a;a=this.sp("scrollPosition","key","row");return null!=a?a:this.sp("scrollPosition","index","row")};c.prototype.SHa=function(){var a;
a=this.sp("scrollPosition","key","column");return null!=a?a:this.sp("scrollPosition","index","column")};c.prototype.lIa=function(){var a;a=this.gl("scrollPosition");return void 0==a?null:void 0!=a.key?"key":void 0!=a.index?"index":null};c.prototype.Rga=function(){var a,b;a=this.gl("selectionMode");if(void 0==a)return"none";b=this.ij();a=a[b];return null!=a?a:"none"};c.prototype.ij=function(){var a;a=this.gl("selectionMode");if(void 0==a)return"cell";a=a.row;return null!=a&&"none"!=a?"row":"cell"};
c.prototype.getSelection=function(){return this.gl("selection")};c.prototype.kga=function(){return this.gl("currentCell")};c.prototype.pga=function(){return this.gl("editMode")};c.prototype.SJa=function(a,b){return this.aja(this.gl("sortable",a,b))};c.prototype.wi=function(a,b,c){a=this.sp("header",a,"resizable",b);return void 0!=c?this.evaluate(a,c):a};c.prototype.RJa=function(){return this.aja(this.sp("dnd","reorder","row"))};c.prototype.NM=function(a,b){return this.gl("style",a,b)};c.prototype.UM=
function(a,b){return this.gl("className",a,b)};c.prototype.kr=function(a){return this.Iga("renderer",a)};c.prototype.Oga=function(){var a=this.gl("scrollPolicy");null==a&&(a="auto");return a};a.Ra("oj.ojDataGrid",g.oj.baseComponent,{widgetEventPrefix:"oj",options:{bandingInterval:{row:0,column:0},data:null,gridlines:{horizontal:"visible",vertical:"visible"},scrollPosition:null,selectionMode:null,dnd:{reorder:{row:"disable"}},scrollPolicy:"auto",selection:[],currentCell:null,editMode:"none",header:{row:{className:null,
renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},column:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},sortable:"auto",style:null},columnEnd:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},style:null},rowEnd:{className:null,renderer:null,resizable:{width:"disable",height:"disable"},style:null}},cell:{className:null,renderer:null,style:null},resize:null,sort:null,optionChange:null,ready:null,scroll:null,beforeCurrentCell:null,
beforeEdit:null,beforeEditEnd:null},_ComponentCreate:function(){this._super();this.root=this.element[0];this.Di=this.root.getAttribute("id");this.Y5();this.zca();this.grid=new f;this.grid.Xn(f.eH);g(this.root).addClass("oj-datagrid oj-component");g(this.root).attr(a.Components.po,this.widgetName)},Nh:function(){var b=this;this.hp(this.root);g(this.root).empty();this._super();this.kx=new a.tl(this.nd(),this.WJ.bind(b));this.Xca();this.Iz();null!=this.yd&&(this.ps(),this.grid.uP(this.yd));this.grid.wP(this.options);
this.grid.xP(this.kx);this.grid.c1(this.vAa.bind(b));this.grid.h1(this.Kd.bind(b));this.grid.d1(this.Y5.bind(b));this.grid.i1(this.zca.bind(b));this.grid.g1(this.option.bind(b));this._focusable({applyHighlight:!0,setupHandlers:function(a,c){b.grid.f1.call(b.grid,function(b){return a(g(b))},function(a){return c(g(a))})}});this.AE();this.lE();null!=this.yd&&this.xn(this.root)},AE:function(){var a=this;this.grid.addListener("resize",function(b){a._trigger("resize",b.event,b.ui)});this.grid.addListener("select",
function(b){a.option("selection",b.ui.selection,{_context:{originalEvent:b.event,kb:!0},changed:!0})});this.grid.addListener("currentCell",function(b){a.option("currentCell",b.ui,{_context:{originalEvent:b.event,kb:!0},changed:!0})});this.grid.addListener("beforeCurrentCell",function(b){return a._trigger("beforeCurrentCell",b.event,b.ui)});this.grid.addListener("sort",function(b){a._trigger("sort",b.event,b.ui)});this.grid.addListener("keydown",function(b){return a._trigger("keydown",b.event,b.ui)});
this.grid.addListener("ready",function(){a._trigger("ready",null,{})});this.grid.addListener("scroll",function(b){a._trigger("scroll",b.event,b.ui)});this.grid.addListener("beforeEdit",function(b){return a._trigger("beforeEdit",b.event,b.ui)});this.grid.addListener("beforeEditEnd",function(b){return a._trigger("beforeEditEnd",b.event,b.ui)})},refresh:function(){this._super();this.hp(this.root);g(this.root).empty();!0===this.QFa&&(this.options.contextMenu=null);this.Xca();null!=this.yd&&(a.Ab&&this.yd instanceof
a.Ab&&(this.yd.bh(),this.yd.Init()),this.ps(),this.grid.uP(this.yd));this.grid.wP(this.options);this.grid.xP(this.kx);this.grid.yA()!=f.eH&&this.grid.Xn(f.MB);this.lE();null!=this.yd&&this.xn(this.root)},_destroy:function(){g(this.root).removeAttr(a.Components.po);null!=this.yd&&this.yd.bh&&this.yd.bh();this.grid.destroy();this.hp(this.root);g(this.root).empty()},_setOptions:function(a,b){var c;this.yd?(c=this.Qxa(a,b),this._super(a,b),"refresh"==c?this.refresh():"pass"==c&&this.grid.r1(a,b)):(this._super(a,
b),null!=a.data&&this.refresh())},hq:function(){this._super();this.lE()},Vm:function(){this._super();this.grid.yA()===f.Ju&&this.grid.Xn(f.Nx)},gq:function(){this._super();this.lE()},Gj:function(){this._super();this.grid.yA()===f.Ju&&this.grid.Xn(f.Nx)},Qxa:function(a,b){var c,d="ignore";for(c in a)switch(c){case "bandingInterval":case "currentCell":case "editMode":case "gridlines":case "scrollPosition":case "selection":d="pass";break;case "beforeCurrentCell":case "beforeEdit":case "beforeEditEnd":case "create":case "disabled":case "dnd":case "optionChange":case "ready":case "resize":case "rootAttributes":case "scroll":case "selectionMode":case "sort":break;
case "cell":case "header":if(d=b.subkey,null!=d&&(d=d.split("."),"resizable"==d[1]||"sortable"==d[1])){d="pass";break}default:return"refresh"}return d},zK:function(a,b){return this.options.header[a]&&this.options.header[a].resizable?"disable"!==this.options.header[a].resizable[b]:!1},RD:function(a){return this.options.header[a]?"disable"!==this.options.header[a].sortable:!1},ps:function(){var b,c,d=null,e=null,f=null,t=null,s,q;b=this;if(null==this.options.contextMenu){if(null!=this.yd){c=g("\x3cul\x3e");
c.css("display","none").attr("id",this.Di+"contextmenu");g(this.root).append(c);if(this.zK("column","width")||this.zK("column","height")||this.zK("row","width")||this.zK("row","height"))d=this.Kj("resize");s=this.yd.getCapability("sort");!this.RD("column")||"column"!==s&&"full"!==s||(e=this.Kj("sortCol"));!this.RD("row")||"row"!==s&&"full"!==s||(e=null!=e?e.add(this.Kj("sortRow")):this.Kj("sortRow"));if("enable"===this.options.dnd.reorder.row)switch(this.yd.getCapability("move")){case "none":break;
default:t=this.ag("cut").add(this.ag("paste"))}this.tn()&&a.D.jf()&&(this.QI=!1,f=this.ag("discontiguousSelection"));if(null!=d||null!=e||null!=t||null!=f)c.append(d).append(e).append(t).append(f),c.ojMenu(),this.QFa=!0,this._setOption("contextMenu",c.get(0)),c.on("ojselect",this.Sk.bind(this))}}else null==this.DV&&(this.DV=[]),c=g(this.options.contextMenu),d=c.find("[data-oj-command]"),q=[],d.each(function(){var a;a=g(this).children("a");if(0===a.length||-1!=b.DV.indexOf(a.get(0)))a=g(this).attr("data-oj-command").split("-"),
a=b.Kj(a[a.length-1]),g(this).replaceWith(a),q.push(a.children("a").get(0))}),this.DV=q,c.data("oj-ojMenu")&&c.ojMenu("refresh"),c.on("ojselect",this.Sk.bind(this))},Kj:function(a){if("resize"===a)return this.ag("resize").append(g("\x3cul\x3e\x3c/ul\x3e").append(this.ag("resizeWidth")).append(this.ag("resizeHeight")));if("sortCol"===a)return this.ag("sortCol").append(g("\x3cul\x3e\x3c/ul\x3e").append(this.ag("sortColAsc")).append(this.ag("sortColDsc")));if("sortRow"===a)return this.ag("sortRow").append(g("\x3cul\x3e\x3c/ul\x3e").append(this.ag("sortRowAsc")).append(this.ag("sortRowDsc")));
if(-1!=Object.keys(this.kx.dk).indexOf(a))return g(this.ag(a))},ag:function(a){var b=g("\x3cli\x3e\x3c/li\x3e");b.attr("data-oj-command",this.Bq(a));b.append(this.xC(a));return b},xC:function(a){var b="label"+a.charAt(0).toUpperCase()+a.slice(1);"discontiguousSelection"===a&&(b="labelEnableNonContiguous");return g('\x3ca href\x3d"#"\x3e\x3c/a\x3e').text(this.WJ(b))},J7:function(){return g(this.options.contextMenu).get(0)},WJ:function(a,b){return this.F(a,b)},Wxa:function(){var a=g("#"+this.Di+"spinner").ojInputNumber("option",
"value");g("#"+this.Di+"dialog").ojDialog("close");this.grid.YM(this.Cw,this.Rn,a);this.Cw.target.focus()},Aqa:function(a,b){var c,d,e,f,s;c=g("#"+this.Di+"dialog");e=g("#"+this.Di+"spinner");0===c.length||0===e.length?(c=g("\x3cdiv\x3e"),c.attr("id",this.Di+"dialog"),d=g('\x3cdiv class\x3d"oj-dialog-body"\x3e\x3c/div\x3e'),f=g('\x3cdiv class\x3d"oj-dialog-footer"\x3e\x3c/div\x3e'),c.append(d).append(f),e=g('\x3cinput id\x3d"'+this.Di+'spinner"/\x3e'),s=g('\x3cbutton id\x3d"'+this.Di+'dialogsubmit"/\x3e'),
d.append(e),f.append(s),g(this.root).append(c),s.ojButton({R:"ojButton",label:this.WJ("labelResizeDialogSubmit")}),s.on("click",this.Wxa.bind(this)),e.ojInputNumber({R:"ojInputNumber",max:1E3,min:20,step:1,value:b}),c.ojDialog({initialVisibility:"show",title:a,position:{my:"center center",at:"center center",collision:"none",of:g(this.root)}})):(c=g("#"+this.Di+"dialog"),e.ojInputNumber("option","value",b),c.ojDialog("option","title",a),c.ojDialog("open"))},Sk:function(a,b){var c;this.Rn=b.item.attr("data-oj-command");
this.Rn===this.Bq("sortColAsc")||this.Rn===this.Bq("sortColDsc")||this.Rn===this.Bq("cut")||this.Rn===this.Bq("paste")?this.grid.YM(this.Cw,this.Rn,null):this.Rn===this.Bq("resizeWidth")||this.Rn===this.Bq("resizeHeight")?(c=g(this.Cw.target).closest("."+this.vd("cell")),0==c.length&&(c=g(this.Cw.target).closest("."+this.vd("headercell"))),0==c.length&&(c=g(this.Cw.target).closest("."+this.vd("endheadercell"))),0<c.length&&(c=this.Rn===this.Bq("resizeWidth")?c.outerWidth():c.outerHeight(),this.Aqa(b.item.text(),
c))):this.Rn===this.Bq("discontiguousSelection")&&(this.QI=!this.QI,this.grid.YM(this.Cw,this.Rn,this.QI),c=this.QI?"labelDisableNonContiguous":"labelEnableNonContiguous",b.item.children().first().text(this.WJ(c)))},ph:function(a,b,c){this.grid.nha(b,c,this.Gra.bind(this))},Gra:function(a,b,c){var d;null!=a&&(this.Cw=b.originalEvent,d=a.launcher,a=a.capabilities,this.iAa(a),d="keyboard"===c?{position:{of:d},launcher:g(d)}:{launcher:g(d)},this.qh(b,c,d))},opa:function(a){var b;b=g(this.J7());b.find("[data-oj-command\x3d"+
a+"]").hasClass("oj-disabled")||b.find("[data-oj-command\x3d"+a+"]").addClass("oj-disabled")},oCa:function(a){g(this.J7()).find("[data-oj-command\x3d"+a+"]").removeClass("oj-disabled")},iAa:function(a){var b,c;for(b in a)a.hasOwnProperty(b)&&(c=this.kx.Vg(b),"disable"===a[b]?this.opa(c):this.oCa(c))},b7:function(a){var b;b=a.parent();a=a.index();return{rowIndex:b.index(),columnIndex:a}},RMa:function(a){var b;b=this.Kva().children().eq(0).children().eq(a.rowIndex+1);a=this.zua().children().eq(0).children().eq(a.columnIndex);
return{rowHeader:b,columnHeader:a}},U7:function(){return g(this.root)},zua:function(){return g("#"+this.Di+"\\:columnHeader")},Kva:function(){return g("#"+this.Di+"\\:rowHeader")},Jua:function(){return g("#"+this.Di+"\\:databody ."+this.vd("row"))},Xca:function(){this.yd=null!=this.options.data?this.options.data:null},Iz:function(){var a=this.options.selection;null!=a&&this.grid.yP(a)},vAa:function(b){b.component=a.Components.Yc(this.element,"ojDataGrid")},nL:function(a){this.grid.b1(a)},hp:function(b){b&&
this.Og&&a.D.xm(b,this.Og)},xn:function(b){b&&(null==this.Og&&(this.Og=this.Lg.bind(this)),a.D.$k(b,this.Og))},Lg:function(a,b){0<a&&0<b&&(this.lE(),this.grid.Cx(a,b))},getNodeBySubId:function(a){var b,c,d,e;if(null==a)return this.element?this.element[0]:null;b=a.subId;if("oj-datagrid-cell"===b)b=a.rowIndex-this.grid.Ap(),a=a.columnIndex-this.grid.zp(),d=this.Jua().eq(b).children().eq(a);else if("oj-datagrid-sort-icon"===b||"oj-datagrid-sort-ascending"===b||"oj-datagrid-sort-descending"===b||"oj-datagrid-header"===
b){e=a.axis;d=a.index;a=null==a.level?0:a.level;"column"===e?c=this.eb(d,a,g("#"+this.Di+"\\:columnHeader"),this.grid.sd):"row"===e?c=this.eb(d,a,g("#"+this.Di+"\\:rowHeader"),this.grid.Zb):"columnEnd"===e?c=this.eb(d,a,g("#"+this.Di+"\\:columnEndHeader"),this.grid.Bd):"rowEnd"===e&&(c=this.eb(d,a,g("#"+this.Di+"\\:rowEndHeader"),this.grid.Bc));if(null==c)return null;if("oj-datagrid-sort-icon"===b)return c.children("."+this.vd("sortcontainer")).children().get(0);d="oj-datagrid-sort-ascending"===b?
c.find("."+this.vd("sortascending")):"oj-datagrid-sort-descending"===b?c.find("."+this.vd("sortdescending")):c}return null!=d&&0<d.length?d[0]:null},getSubIdByNode:function(a){var b,c;b=g(a).closest("."+this.vd("cell"));if(0<b.length)return a=this.b7(b),{subId:"oj-datagrid-cell",rowIndex:a.rowIndex+this.grid.Ap(),columnIndex:a.columnIndex+this.grid.zp()};c=g(a).closest("."+this.vd("headercell"));0==c.length&&(c=g(a).closest("."+this.vd("endheadercell")));return 0<c.length?(b=c[0][this.kn("context")],
a=g(a).hasClass(this.vd("sortascending"))?"oj-datagrid-sort-ascending":g(a).hasClass(this.vd("sortdescending"))?"oj-datagrid-sort-descending":"oj-datagrid-header",{subId:a,axis:b.axis,index:this.Z7(c),level:b.level}):null},getContextByNode:function(a){var b;b=g(a).closest("."+this.vd("cell"));if(0<b.length)return a=b[0][this.kn("context")],b=this.b7(b),{subId:"oj-datagrid-cell",component:a.component,cell:a.cell,data:a.data,datasource:a.datasource,indexes:{row:b.rowIndex+this.grid.Ap(),column:b.columnIndex+
this.grid.zp()},keys:{row:a.keys.row,column:a.keys.column},mode:a.mode};b=g(a).closest("."+this.vd("headercell"));0==b.length&&(b=g(a).closest("."+this.vd("endheadercell")));return 0<b.length?(a=b[0][this.kn("context")],{subId:"oj-datagrid-header",axis:a.axis,component:a.component,data:a.data,datasource:a.datasource,depth:a.depth,extent:a.extent,index:this.Z7(b),key:a.key,level:a.level}):null},vd:function(a){return this.kx.o(a)},kn:function(a){return this.kx.Gc(a)},Bq:function(a){return this.kx.Vg(a)},
pza:function(){return null!=this.root.offsetParent?!0:!1},lE:function(){var a=this.grid.yA();this.pza()?(a===f.eH?this.grid.render(this.root):a===f.MB&&this.grid.refresh(this.root),this.grid.Xn(f.Ju)):a===f.Ju&&this.grid.Xn(f.Nx)},eb:function(a,b,c,d){var e;if(0>b)return null;e=c.children().first().children().last();if(e.hasClass(this.vd("headercell")))return c.children().first().children("."+this.vd("headercell")).eq(a-d);if(e.hasClass(this.vd("endheadercell")))return c.children().first().children("."+
this.vd("endheadercell")).eq(a-d);c=this.V7(a,b,0,c.children().first().children());if(null==c)return null;if(b<=parseInt(c.attr(this.kn("level")),10)+parseInt(c.children().eq(0).attr(this.kn("depth")),10)-1)return c.children().eq(0);d=parseInt(c.attr(this.kn("start")),10);a=a-d+1;return c.children().eq(a)},V7:function(a,b,c,d){var e,f,g,q;if(null==d.eq(1)||d.eq(1).hasClass(this.vd("headercell"))||d.eq(1).hasClass(this.vd("endheadercell")))return b===c?d.eq(0).parent():null;e=d.parent().parent();for(g=
e.hasClass(this.vd("header"))||e.hasClass(this.vd("endheader"))?0:1;g<d.length;g++)if(e=parseInt(d.eq(g).attr(this.kn("start")),10),f=parseInt(d.eq(g).attr(this.kn("extent")),10),q=parseInt(d.eq(g).children().eq(0).attr(this.kn("depth")),10),a>=e&&a<e+f)return b<c+q?d.eq(g):this.V7(a,b,c+q,d.eq(g).children());return null},Z7:function(a){var b;if(a.parent().hasClass(this.vd("groupingcontainer"))){b=parseInt(a.parent().attr(this.kn("start")),10);if(a.get(0)===a.parent().children(":first").get(0))return b;
b--}else b=a.hasClass(this.vd("rowheadercell"))?this.grid.Zb:a.hasClass(this.vd("colheadercell"))?this.grid.sd:a.hasClass(this.vd("colendheadercell"))?this.grid.Bd:this.grid.Bc;return b+=a.index()},YMa:function(a){var b;return a.parent().hasClass(this.vd("groupingcontainer"))?(b=parseInt(a.parent().attr(this.kn("level")),10),a.get(0)===a.parent().children(":first").get(0)?b:b+1):0},tn:function(){return null==this.options.selectionMode||"multiple"!==this.options.selectionMode.row&&"multiple"!==this.options.selectionMode.cell?
!1:!0},Kd:function(a){g(a).remove()},scrollTo:function(a){this.grid.scroll(a)},whenReady:function(){return this.OBa},Y5:function(){var a=this;this.OBa=new Promise(function(b){a.PBa=b})},zca:function(){this.PBa(null)}});f.prototype.nEa=function(){this.XFa={ACTIONABLE:this.jU,EXIT_ACTIONABLE:this.Lwa,TAB_NEXT_IN_CELL:this.iwa,TAB_PREV_IN_CELL:this.hwa,EDITABLE:this.uU,EXIT_EDITABLE:this.Nwa,DATA_ENTRY:this.zwa,EXIT_DATA_ENTRY:this.Mwa,EDIT:this.aK,EXIT_EDIT:this.vU,CANCEL_EDIT:this.mwa,NO_OP:this.Oxa,
EAT:this.Jwa,FOCUS_LEFT:this.bxa,FOCUS_RIGHT:this.cxa,FOCUS_UP:this.hxa,FOCUS_DOWN:this.axa,FOCUS_ROW_FIRST:this.exa,FOCUS_ROW_LAST:this.gxa,FOCUS_COLUMN_FIRST:this.Ywa,FOCUS_COLUMN_LAST:this.$wa,FOCUS_COLUMN_HEADER:this.Zwa,FOCUS_COLUMN_END_HEADER:this.Xwa,FOCUS_ROW_HEADER:this.fxa,FOCUS_ROW_END_HEADER:this.dxa,READ_CELL:this.IKa,SORT:this.gya,SELECT_DISCONTIGUOUS:this.bya,SELECT_EXTEND_LEFT:this.Rwa,SELECT_EXTEND_RIGHT:this.Swa,SELECT_EXTEND_UP:this.Twa,SELECT_EXTEND_DOWN:this.Qwa,SELECT_ROW:this.cya,
SELECT_COLUMN:this.aya,CUT:this.yD,CANCEL_REORDER:this.nwa,PASTE:this.AD}};f.prototype.r7=function(a,b){var c={cellOrHeader:b,readOnly:!this.cV(),currentMode:this.rJ(),activeMove:null!=this.lm,rowMove:this.xK(),columnSort:"column"==b?this.Vs(this.dg()):!1,selection:this.yc(),selectionMode:this.pa.ij(),multipleSelection:this.Mn()};return this.XFa[this.dKa.OHa(a,c)]};f.prototype.kN=function(){return"actionable"===this.Nt};f.prototype.Qja=function(a){this.Nt=a?"actionable":"navigation";this.Qg(this.kN()?
"accessibleActionableMode":"accessibleNavigationMode")};f.prototype.jU=function(a,b){this.ZI(b);return!1};f.prototype.Lwa=function(){this.Gs();this.pn();return!1};f.prototype.iwa=function(a,b){var c=this.vF(b);return 0<c.length&&a.target==c[c.length-1]?(c[0].focus(),!0):!1};f.prototype.hwa=function(a,b){var c=this.vF(b);return 0<c.length&&a.target==c[0]?(c[c.length-1].focus(),!0):!1};f.prototype.N7=function(){null==this.NA&&(this.NA=this.pa.pga());return this.NA};f.prototype.rJ=function(){null==this.Nt&&
(this.Nt="navigation");return this.Nt};f.prototype.JD=function(){return"edit"===this.rJ()};f.prototype.ND=function(){var a=this.N7();return"cellNavigation"===a||"cellEdit"===a?!0:!1};f.prototype.cV=function(){return"cellEdit"===this.N7()?!0:!1};f.prototype.uU=function(a,b){this.ND()?(this.NA=null,this.Gia("editMode","cellEdit",{_context:{Cd:!0,kb:!0}}),this.q.pb(this.ba,this.o("readOnly")),this.q.nb(this.ba,this.o("editable")),this.HX(""),this.Qg("accessibleEditableMode")):this.jU(0,b);return!1};
f.prototype.Nwa=function(){this.NA=null;this.Gia("editMode","cellNavigation",{_context:{Cd:!0,kb:!0}});this.q.nb(this.ba,this.o("readOnly"));this.q.pb(this.ba,this.o("editable"));this.HX("none");this.Qg("accessibleNavigationMode")};f.prototype.zwa=function(a,b){var c;c={event:a,ui:{cell:b,cellContext:b[this.ca.Gc("context")]}};this.fireEvent("beforeEdit",c)&&(this.dW(b,"edit",this.o("cellEdit")),this.YI(b),this.eba=!0,this.sL(b)?this.Nt="edit":this.q.pb(b,this.o("cellEdit")),this.eba=!1);return!1};
f.prototype.Mwa=function(a,b){return this.Vv(a,b,!1)};f.prototype.aK=function(a,b){var c;c={event:a,ui:{cell:b,cellContext:b[this.ca.Gc("context")]}};(c=this.fireEvent("beforeEdit",c))?(this.dW(b,"edit",this.o("cellEdit")),this.YI(b),this.sL(b)?this.Nt="edit":this.q.pb(b,this.o("cellEdit"))):(c=!1,this.ZI(b));return c};f.prototype.vU=function(a,b){return this.Vv(a,b,!1)};f.prototype.mwa=function(a,b){return this.Vv(a,b,!0)};f.prototype.Vv=function(a,b,c){a={event:a,ui:{cell:b,cellContext:b[this.ca.Gc("context")],
cancelEdit:c}};c||(this.OI(b),this.pn());(c=this.fireEvent("beforeEditEnd",a))?(this.Nt="navigation",this.OI(b),this.pn(),this.dW(b,"navigation",this.o("cellEdit"))):(c=!1,this.Kca(this.N),this.YI(b),this.sL(b));return c};f.prototype.$h=function(a,b,c,d,e){var f=!0,g=!0,q;return null!=this.N?"cell"==this.N.type?(this.JD()?(q=!0,f=this.Vv(a,b,!1),g=!1):this.kN()&&this.Gs(),f?(b=this.N,c=this.XIa(c,d,a,g,e),this.q.Od()&&q&&b!=this.N?this.aK(a,this.dg()):c):!0):this.ZIa(c,a,e):!1};f.prototype.bxa=function(a,
b){return this.$h(a,b,f.yb.Bg,!1,!1)};f.prototype.cxa=function(a,b){return this.$h(a,b,f.yb.kh,!1,!1)};f.prototype.hxa=function(a,b){return this.$h(a,b,f.yb.Bl,!1,!1)};f.prototype.axa=function(a,b){return this.$h(a,b,f.yb.sl,!1,!1)};f.prototype.exa=function(a,b){return this.$h(a,b,f.yb.XG,!1,!1)};f.prototype.gxa=function(a,b){return this.$h(a,b,f.yb.WG,!1,!1)};f.prototype.Ywa=function(a,b){return this.$h(a,b,f.yb.OG,!1,!1)};f.prototype.$wa=function(a,b){return this.$h(a,b,f.yb.KG,!1,!1)};f.prototype.fxa=
function(a,b){return this.$h(a,b,f.yb.Bg,!1,!0)};f.prototype.dxa=function(a,b){return this.$h(a,b,f.yb.kh,!1,!0)};f.prototype.Zwa=function(a,b){return this.$h(a,b,f.yb.Bl,!1,!0)};f.prototype.Xwa=function(a,b){return this.$h(a,b,f.yb.sl,!1,!0)};f.prototype.cya=function(a,b){var c,d,e;if(!this.yc()||!this.Mn())return!1;if(this.q.Aa(b,this.o("cell")))d=c=e=this.N.indexes.row;else{if(null==this.N||"header"!=this.N.type||"row"!=this.N.axis)return!1;e=this.N.index;c=this.N.level;this.Ac-1===c?d=c=e:(d=
this.dg(),c=this.ec(d.parentNode,"start"),d=c+this.ec(d.parentNode,"extent")-1)}this.qDa(c,d,a);this.Qg("accessibleRowSelected",{row:e+1});return!0};f.prototype.aya=function(a,b){var c,d,e;if(!this.yc()||!this.Mn()||"cell"!=this.pa.ij())return!1;if(this.q.Aa(b,this.o("cell")))d=c=e=this.N.indexes.column;else{if(null==this.N||"header"!=this.N.type||"column"!=this.N.axis)return!1;e=this.N.index;c=this.N.level;this.Zc-1===c?d=c=e:(d=this.dg(),c=this.ec(d.parentNode,"start"),d=c+this.ec(d.parentNode,
"extent")-1)}this.pDa(c,d,a);this.Qg("accessibleColumnSelected",{column:e+1});return!0};f.prototype.bya=function(){this.x_(!this.TF);return!0};f.prototype.Rwa=function(a,b){return this.$h(a,b,f.yb.Bg,!0,!1)};f.prototype.Swa=function(a,b){return this.$h(a,b,f.yb.kh,!0,!1)};f.prototype.Twa=function(a,b){return this.$h(a,b,f.yb.Bl,!0,!1)};f.prototype.Qwa=function(a,b){return this.$h(a,b,f.yb.sl,!0,!1)};f.prototype.gya=function(a,b){return"true"==b.getAttribute(this.ca.Gc("sortable"))?(this.mxa(b,a),
!0):this.jU(0,b)};f.prototype.Oxa=function(){return!1};f.prototype.Jwa=function(){return!0};b.prototype.OHa=function(a,b){var c,d,e,g,s,q,p,n,u,v,w,y,x,z;c=a.keyCode;e=this.grid.q.Dfa(a);g=a.shiftKey;s=a.altKey;d=f.yb;q=b.cellOrHeader;p=b.readOnly;n=b.currentMode;u=b.activeMove;v=b.rowMove;w=b.columnSort;y=b.selection;x=b.selectionMode;z=b.multipleSelection;switch(c){case d.cH:if("actionable"===n)return g?"TAB_PREV_IN_CELL":"TAB_NEXT_IN_CELL";if(!p)return g?"FOCUS_LEFT":"FOCUS_RIGHT";break;case d.PO:if("column"===
q&&w)return"SORT";if(!s&&p&&"navigation"===n||"cell"!=q)return"ACTIONABLE";if(p||s){if(s&&p&&"navigation"===n)return"EDITABLE";if(!p&&("navigation"==n||"edit"===n))return"EDIT"}else return g?"FOCUS_UP":"FOCUS_DOWN";break;case d.RO:if("actionable"===n)return"EXIT_ACTIONABLE";if(u)return"CANCEL_REORDER";if(!p){if("navigation"===n)return"EXIT_EDITABLE";if("edit"===n)return"CANCEL_EDIT"}break;case d.sP:if("row"===q&&y&&("cell"==x&&z||"row"==x))return"SELECT_ROW";if("column"===q&&y&&"cell"==x&&z)return"SELECT_COLUMN";
if("cell"===q)if(p&&"navigation"===n){if(e&&y&&"cell"==x&&z)return"SELECT_COLUMN";if(g&&y&&("cell"==x&&z||"row"==x))return"SELECT_ROW"}else if("navigation"===n)return"DATA_ENTRY";break;case d.XG:if("edit"!==n)return"FOCUS_ROW_FIRST";break;case d.WG:if("edit"!==n)return"FOCUS_ROW_LAST";break;case d.KG:if("edit"!==n)return"FOCUS_COLUMN_LAST";break;case d.OG:if("edit"!==n)return"FOCUS_COLUMN_FIRST";break;case d.Bg:if("actionable"===n)break;else if("edit"!==n)return g&&y&&"cell"==x&&z?"SELECT_EXTEND_LEFT":
e&&"column"!=q?"FOCUS_ROW_HEADER":"FOCUS_LEFT";break;case d.Bl:if("actionable"===n)break;else if("edit"!==n)return g&&y&&z?"SELECT_EXTEND_UP":e&&"row"!=q?"FOCUS_COLUMN_HEADER":"FOCUS_UP";break;case d.kh:if("actionable"===n)break;else if("edit"!==n)return g&&y&&"cell"==x&&z?"SELECT_EXTEND_RIGHT":e&&"column"!=q?"FOCUS_ROW_END_HEADER":"FOCUS_RIGHT";break;case d.sl:if("actionable"===n)break;else if("edit"!==n)return g&&y&&z?"SELECT_EXTEND_DOWN":e&&"row"!=q?"FOCUS_COLUMN_END_HEADER":"FOCUS_DOWN";break;
case d.SO:if("cell"!=q)return"ACTIONABLE";if(p&&"navigation"===n)return"EDITABLE";if(!p&&"navigation"==n)return"EDIT";break;case d.ila:if(g&&y&&z)return"SELECT_DISCONTIGUOUS";break;case d.hla:if(g)break;break;case d.DP:if("navigation"===n&&e&&v)return"PASTE";if(!p&&"navigation"===n)return"DATA_ENTRY";break;case d.FP:if("navigation"===n&&e&&v)return"CUT";if(!p&&"navigation"===n)return"DATA_ENTRY";break;case d.Tla:case d.Yka:case d.Rka:break;case d.lP:if(e&&s)return"READ_CELL";default:if(!p&&"navigation"===
n&&"cell"==q)return"DATA_ENTRY"}return"NO_OP"};a.Components.Xa("ojDataGrid","baseComponent",{properties:{bandingInterval:{type:"Object\x3cstring, number\x3e"},cell:{type:"Object"},currentCell:{type:"Object"},data:{},dnd:{type:"Object"},editMode:{type:"string"},gridlines:{type:"Object\x3cstring, string\x3e"},header:{},scrollPolicy:{type:"string"},scrollPosition:{type:"Object\x3cstring, Object\x3e"},selection:{type:"Array\x3cObject\x3e"},selectionMode:{type:"Object\x3cstring, string\x3e"}},methods:{getContextByNode:{},
getNodeBySubId:{},getSubIdByNode:{},refresh:{},scrollTo:{},whenReady:{}},extension:{_widgetName:"ojDataGrid"}});a.Components.register("oj-data-grid",a.Components.getMetadata("ojDataGrid"))});